undefined reference to 'sqlca'

From: "Chandra Sekhar (dot) K" <csekhar(at)cisco(dot)com>
To: pgsql-ports(at)postgresql(dot)org
Subject: undefined reference to 'sqlca'
Date: 2000-11-09 12:05:11
Message-ID: 200011090633.MAA02387@cisco.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Browse pgsql-ports by date

  From Date Subject
Next Message Jason Tishler 2000-11-09 13:54:56 Re: Using WinNT binaries: username problems
Previous Message Joe Clark 2000-11-09 06:07:50 Using WinNT binaries: username problems