compiling ... - Mailing list pgsql-general

From mike
Subject compiling ...
Date
Msg-id 9nofaj$bjk$1@news.tht.net
Whole thread Raw
List 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 by date:

Previous
From: Culley Harrelson
Date:
Subject: Re: Fwd: Re: unicode in 7.1
Next
From: "Oliver Elphick"
Date:
Subject: Re: Inheritance c.cities ??