Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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


pgsql-ports by date

Next:From: Jason TishlerDate: 2000-11-09 13:54:56
Subject: Re: Using WinNT binaries: username problems
Previous:From: Joe ClarkDate: 2000-11-09 06:07:50
Subject: Using WinNT binaries: username problems

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group