X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-1.1 required=5.0	tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SARE_SUB_OBFU_Q0,TW_BP,TW_PQ,TW_QT,T_TO_NO_BRKTS_FREEMAIL
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <1286375134.4cac86de663eb@mail.atlantis.sk>
References: <1286375134.4cac86de663eb@mail.atlantis.sk>
Date: Wed, 6 Oct 2010 22:44:06 +0800
Message-ID: <AANLkTimVhrnRpK71a4m6ub7Lo_b1CC_bryFJViZOpPem@mail.gmail.com>
Subject: Re: libpq: problem with shared library
From: Huang Bambo <bambo.huang@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-2
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Can you give the outpuoutput of 'ldd pqtest' ?

2010/10/6 Tom=E1=B9 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)
> {
> =A0 =A0 =A0 =A0PQconnectdb("dbname=3Dtest");
> =A0 =A0 =A0 =A0return 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: =A0 =A0 =A0 http://cygwin.com/problems.html
> FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/
> Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html
> Unsubscribe info: =A0 =A0 =A0http://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

