Search Postgresql Archives

Re: connecting using libpq breaks printf

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux