libpq: problem with shared library

Tomáš Hajas
Wed Oct 6 14:25:00 GMT 2010


I'm trying to use PostgreSQL C API under Cygwin, but libpq attempts load a very
strange shared library. On run-time it states:
"error while loading shared libraries: ?: cannot open shared object file: No
such file or directory"
and yes, name of the missing shared library is literally a question mark.

To reproduce the problem, all it takes is just to use the library:

#include <libpq-fe.h>
int main(int argc, char **argv)
	return 0;

Compiled with:
gcc -o pqtest pqtest.c /usr/lib/libpq.a

What could possibly cause this? Thanks in advace.

Best regards,
Tomas Hajas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 30300 bytes
Desc: not available
URL: <>
-------------- next part --------------
Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list