Re: connecting using libpq breaks printf - Mailing list pgsql-general

From Mikko Partio
Subject Re: connecting using libpq breaks printf
Date
Msg-id 2ca799770902181006r6a5f9533u639d04bcee2fb9ea@mail.gmail.com
Whole thread Raw
In response to connecting using libpq breaks printf  (Joey Morris <rjmorris12@gmail.com>)
List pgsql-general


On Wed, Feb 18, 2009 at 4:47 PM, Joey Morris <rjmorris12@gmail.com> wrote:
This is my first attempt at using libpq, and I'm running across a strange
problem. Here is my bare-bones program:

#include <stdio.h>
#include "libpq-fe.h"

int main(int argc, char **argv) {
 PGconn *conn;
 fprintf(stderr, "connecting\n");
 conn = PQconnectdb("dbname=postgres");
 PQfinish(conn);
 return 0;
}


Works fine with linux + gcc. Must be something in your environment.

Regards

Mikko

pgsql-general by date:

Previous
From: Sam Mason
Date:
Subject: Re: connecting using libpq breaks printf
Next
From: Joey Morris
Date:
Subject: Re: connecting using libpq breaks printf