undefined reference to 'sqlca'

Поиск
Список
Период
Сортировка
От Chandra Sekhar . K
Тема undefined reference to 'sqlca'
Дата
Msg-id 200011090633.MAA02387@cisco.com
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Joe Clark
Дата:
Сообщение: Using WinNT binaries: username problems
Следующее
От: Jason Tishler
Дата:
Сообщение: Re: Using WinNT binaries: username problems