From: | "mike" <mike(at)tkosys(dot)com> |
---|---|
To: | pgsql-general(at)postgresql(dot)org |
Subject: | compiling ... |
Date: | 2001-09-12 20:05:13 |
Message-ID: | 9nofaj$bjk$1@news.tht.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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.
From | Date | Subject | |
---|---|---|---|
Next Message | Emmanuel SARACCO | 2001-09-12 21:07:02 | joinning tables |
Previous Message | Culley Harrelson | 2001-09-12 19:18:35 | Re: Fwd: Re: unicode in 7.1 |