Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@sources.redhat.com Delivered-To: mailing list cygwin@sources.redhat.com Date: Fri, 13 Apr 2001 23:02:23 +0200 To: cygwin@cygwin.com CC: Jason.Tishler@dothill.com From: lemkemch@t-online.de (Michael Lemke) Subject: Postgres 7.1RC4 ecpg can't find sqlca X-Mailer: Opera 5.10 build 902 X-Priority: 3 (Normal) Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Message-ID: <14oAi6-19LMiuC@fwd03.sul.t-online.com> X-Sender: 520098960173-0001@t-dialin.net With the latest postgres release that came lately with cygwin I made my very first attempt at writng an ESQL program (actually, at the moment it is just something I dowloaded). Now when I link it can't find sqlca: michael> gcc -I /usr/include/postgresql/ esql.c -lecpg -lpq /f/cygwin~1/tmp/ccbnOeiG.o(.text+0x203):esql.c: undefined reference to `sqlca' /f/cygwin~1/tmp/ccbnOeiG.o(.text+0x292):esql.c: undefined reference to `sqlca' collect2: ld returned 1 exit status ecpg made the declaration of sqlca extern struct sqlca sqlca; I recompiled postgres and skipped stripping of the libraries. Then I find sqlca in ecpg.dll: michael> nm /usr/bin/ecpg.dll | grep sqlca c0586864 T _init_sqlca c0587000 D _sqlca c05870b0 d _sqlca_init but not in libecpg.a: michael> nm /usr/lib/libecpg.a | grep sqlca 00000000 I __imp__sqlca 00000000 I __imp__init_sqlca 00000000 T _init_sqlca Any ideas? Thanks, Michael -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple