I have downloaded the binairies no installer version of PostgreSql for
I am able to init a database ( initdb), create users and create a database.
I am also able to use the psql executable shell too to Create Table, Insert
record and Query information in my DB.
Where it get complicated, is when I try to use the lib libpq and the samples
that come with it.
I am able to compile and link the sample, but when it comes to call the
first DLL function, it crashes with an unhandled exception.
Here is the source code where it fails with a context before and after:
conninfo = "dbname = myDb";
/* Make a connection to the database */
conn = PQconnectdb(conninfo);
/* Check to see that the backend connection was successfully
if (PQstatus(conn) != CONNECTION_OK)
Does anyone knows how I can fix that problem ?
pgsql-cygwin by date
|Next:||From: John Xiaogang Zhang||Date: 2006-02-24 10:22:22|
|Subject: Problem in initdb|
|Previous:||From: Eric Emerton||Date: 2006-02-12 22:34:31|
|Subject: Windows XP Installation Problems..|