compiling ...

Поиск
Список
Период
Сортировка
От mike
Тема compiling ...
Дата
Msg-id 9nofaj$bjk$1@news.tht.net
обсуждение исходный текст
Список pgsql-general
Hi Folks,


"cc -O -o pgsample pgsample.c -L/usr/local/pgsql/lib -lpq" went thru.

Then I did "make pgsample.o".

After that "make pgsample", this process gave me original errors:

pgsample.o: In function `main':
pgsample.o(.text+0x12): undefined reference to `PQconnectdb'
pgsample.o(.text+0x2b): undefined reference to `PQstatus'
pgsample.o(.text+0x5c): undefined reference to `PQerrorMessage'
pgsample.o(.text+0xd0): undefined reference to `PQexec'
pgsample.o(.text+0xe9): undefined reference to `PQresultStatus'
pgsample.o(.text+0x117): undefined reference to `PQclear'
pgsample.o(.text+0x128): undefined reference to `PQfinish'
pgsample.o(.text+0x152): undefined reference to `PQntuples'
pgsample.o(.text+0x17d): undefined reference to `PQgetvalue'
pgsample.o(.text+0x1aa): undefined reference to `PQclear'
pgsample.o(.text+0x1bb): undefined reference to `PQfinish'
collect2: ld returned 1 exit status
make: *** [pgsample] Error 1

Anyone know the solution for this?
Thanks.

--
Best Regards,

Mike
TKO Systems, Ltd.



В списке pgsql-general по дате отправления:

Предыдущее
От: Culley Harrelson
Дата:
Сообщение: Re: Fwd: Re: unicode in 7.1
Следующее
От: "Oliver Elphick"
Дата:
Сообщение: Re: Inheritance c.cities ??