From: | "Jim Morcombe" <jim(at)byronics(dot)com(dot)au> |
---|---|
To: | "pgsql General" <pgsql-general(at)postgresql(dot)org> |
Subject: | Can't link to libpq |
Date: | 2002-07-19 06:15:04 |
Message-ID: | 007401c22eeb$a3344820$526567cb@BYRONICS |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
I have posted this on the Novice Mailing list without getting a resolution. Can anyone here help me?
I have started at the beginning of the PostSQL 7.2 Programmer's Guide and have typed in part of example 1.1 on page 23.
I have followed the instructions in section 1.12 for building the program.
The program compiles cleanly using the instructions in the manual :
cc -I/usr/local/pgsql/include jim.c
I then compile it with the instruction
cc -o jim jim.o -L/usr/local/pgsql/lib -lpq
However, I get the following errors:
Undefined symbol
PQfinish
PQsetdbLogin
pqstatus
fprint
PQerrorMessage
The manual says this occurs if I forgot the -lpq option, which I have not done.
I am using SCO Unix.
Can anyone help me?
Jim Morcoombe
From | Date | Subject | |
---|---|---|---|
Next Message | Adrian 'Dagurashibanipal' von Bidder | 2002-07-19 06:44:56 | Re: PostgreSQL vs. SapDB slashdot discussion |
Previous Message | Neil Conway | 2002-07-19 04:51:38 | Re: Multi-Versions and Vacuum |