undefined reference to 'sqlca' - Mailing list pgsql-ports

From Chandra Sekhar . K
Subject undefined reference to 'sqlca'
Date
Msg-id 200011090633.MAA02387@cisco.com
Whole thread Raw
List pgsql-ports
Hi ,

I have been trying to run a sample code for postgreSQL
database. I have created .pgc file and am able to generate
.c file using ecpg but I am stuck with gcc , not able to
create the binary from .c file. I have been trying to do
this since last few days but no luck !!. Has anybody
been able to compile postgreSQL code on NT , if so
can u guys tell me how you able to make it.

    I am getting the following error:

$ gcc -I/usr/local/pgsql/include -o sam1 sam1.c -L/usr/local/pgsql/lib -lecpg
-lpq
/cygdrive/c/TEMP/ccDMTTq9.o(.text+0xed):sam1.c: undefined reference to `sqlca'
/cygdrive/c/TEMP/ccDMTTq9.o(.text+0x153):sam1.c: undefined reference to `sqlca'

/cygdrive/c/TEMP/ccDMTTq9.o(.text+0x19e):sam1.c: undefined reference to `sqlca'

/cygdrive/c/TEMP/ccDMTTq9.o(.text+0x1e0):sam1.c: undefined reference to `sqlca'

/cygdrive/c/TEMP/ccDMTTq9.o(.text+0x1ee):sam1.c: undefined reference to `sqlca'

/cygdrive/c/TEMP/ccDMTTq9.o(.text+0x241):sam1.c: more undefined references to
`sqlca' follow
collect2: ld returned 1 exit status

Thanks,
Chandra


pgsql-ports by date:

Previous
From: Joe Clark
Date:
Subject: Using WinNT binaries: username problems
Next
From: Jason Tishler
Date:
Subject: Re: Using WinNT binaries: username problems