Daniel Smith on Tue, 1 May 2001 19:07:18 -0500


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Cialug] g++, PostgreSQL, and c++


I am working on getting a c++ program to access data in PostgreSQL.  I have 
an example out of the PostgreSQL book by Momjian (sp?).

Anyway, I'm getting the following error messages plus some similar ones.

/tmp/cca004821.o: In function 'PgDatabase::GetValue(int, int)':
/tmp/cca004821.o(.PgDatabase::gnu.linkonce.t.GetValue(int, int)+0x16): 
undefined reference to 'PQgetvalue'
/tmp/cca004821.o: In function 'PgDatabase::Tuples(void)':
/tmp/cca004821.o(.PgDatabase::gnu.linkonce.t.Tuples(void)+0xc): undefined 
reference to 'PQntuples'
/usr/lib/libpq++.so: undefined reference to 'lo_export'
/usr/lib/libpq++.so: undefined reference to 'lo_unlink'
/usr/lib/libpq++.so: undefined reference to 'lo_write'
/usr/lib/libpq++.so: undefined reference to 'lo_lseek'

and so on for PQexec, lo_tell, lo_read, PQclear, and a bunch of others.

Any suggestions?

(I'm wondering about a missing header file.)


Thanks,
Dan S.
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

--------------------------------------------------
To un-subscribe to this list use the link below:

mailto:listar@cialug.org?subject=unsubscribe%20lug