I'm having trouble using libpq.dll (implicit linking with C programs).
I'm using libpq.dll v184.108.40.20631 (timestamp Wed May 11 11:12:58 2005)
and PostgreSQL 8.0.3 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC)
3.4.2 (mingw-special) v220.127.116.1131. I used both Borland C++ 5.5.1 and
Microsoft (R) 32-bit C/C++ Standard Compiler Version 12.00.8168.
The problem seems to occurr only when the server sends a hint or the
dll generates one. This can happen when the connection to the server
cannot be established because the server is not running, a nonexistant
postgres function exist is called, when one attempts to drop an index
upon which a constraint depends, etc. (the program doesn't go beyond
PQconnectdb, PQexec or PQexecparam). Since my debugging skills are
very poor I cannot give any accurate description on what is causing
The problem can be very easily reproduced by creating a C program
which calls PQconnectdb with a host parameter that points to a machine
that is not running postgres.
Running the same program under linux (although I used older versions
of the interface and the server) does not cause any problems.
pgsql-interfaces by date
|Next:||From: John DeSoi||Date: 2005-05-19 14:58:47|
|Subject: Re: libpq on windows|
|Previous:||From: Sean Davis||Date: 2005-05-19 10:05:36|
|Subject: Re: perl and large objects|