| From: | Olivier Cherrier <Olivier(dot)Cherrier(at)cediti(dot)be> |
|---|---|
| To: | "'zilch(at)home(dot)se'" <zilch(at)home(dot)se>, pgsql-general(at)postgresql(dot)org |
| Subject: | RE: libpq compile error |
| Date: | 2001-06-08 13:48:19 |
| Message-ID: | BB863FBA3E3CAE4DAC430686AD28EA56038913@brisefer.cediti.be |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-general |
>> bash-2.04$ gcc -v -I/usr/local/include/postgresql/ -o
>testlibpq testlibpq.c
>
>Now tell yourself where do you tell the compiler where all the
>postgresql
>code is! The compiler itself wont give you the code for all
>your postgresql
>specific function calls.
>
>try add "-lpq" to the end of the line.
Unfortunately, It doesn't help:
<<
bash-2.04$ gcc -I/usr/local/include/postgresql/ -o testlibpq testlibpq.c
-lpq
ld: -lpq: no match
collect2: ld returned 1 exit status
bash-2.04$
>>
"man gcc" gives that "-l" is for libraries.
I also tried:
<<
bash-2.04$ gcc -I/usr/local/include/postgresql/
-L/usr/local/include/postgresql/
-o testlibpq testlibpq.c -lpq
>>
But I get the same original error (Undefined symbol).
Thanks for help.
Olivier
>
>gcc -o testlibpq testlibpq.c -lpq
>
>Daniel Akerud
>
>---------------------------(end of
>broadcast)---------------------------
>TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to
>majordomo(at)postgresql(dot)org)
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Joseph | 2001-06-08 13:54:17 | storing images in postgres |
| Previous Message | zilch | 2001-06-08 13:13:22 | Re: libpq compile error |