On Wed, Feb 18, 2009 at 4:47 PM, Joey Morris <rjmorri...@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

Reply via email to