Re: connecting using libpq breaks printf

From: Mikko Partio <mpartio(at)gmail(dot)com>
To: Joey Morris <rjmorris12(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: connecting using libpq breaks printf
Date: 2009-02-18 18:06:25
Message-ID: 2ca799770902181006r6a5f9533u639d04bcee2fb9ea@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Wed, Feb 18, 2009 at 4:47 PM, Joey Morris <rjmorris12(at)gmail(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Joey Morris 2009-02-18 18:29:53 Re: connecting using libpq breaks printf
Previous Message Will Harrower 2009-02-18 18:05:43 Debugging custom type libraries