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