This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: libpq: problem with shared library
- From: Huang Bambo <bambo dot huang at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 6 Oct 2010 22:44:06 +0800
- Subject: Re: libpq: problem with shared library
- References: <1286375134.4cac86de663eb@mail.atlantis.sk>
Can you give the outpuoutput of 'ldd pqtest' ?
2010/10/6 Tomáš Hajas <hajas@styleweb.sk>
>
> Hello,
>
> 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)
> {
> ? ? ? ?PQconnectdb("dbname=test");
> ? ? ? ?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
>
> --
> Problem reports: ? ? ? http://cygwin.com/problems.html
> FAQ: ? ? ? ? ? ? ? ? ? http://cygwin.com/faq/
> Documentation: ? ? ? ? http://cygwin.com/docs.html
> Unsubscribe info: ? ? ?http://cygwin.com/ml/#unsubscribe-simple
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple