Sergey Nivarov wrote:

Thank you. However it didn't help me. I've changed /usr/include/pqxx/result.hxx
void freemem_result_data(result_data *) throw ();
to void PQXX_LIBEXPORT freemem_result_data(result_data *) throw (); but i get the error still:
/usr/bin/g++ testlib.c mipostgres.c -I/usr/include/pqxx -lpqxx
/tmp/ccB4PwMu.o: In function 
`pqxx::internal::PQAlloc<pqxx::internal::result_data>::freemem()':
mipostgres.c:(.text._ZN4pqxx8internal7PQAllocINS0_11result_dataEE7freememEv[pqxx::internal::PQAlloc<pqxx::internal::result_data>::freemem()]+0x14):
 undefined reference to 
`pqxx::internal::freemem_result_data(pqxx::internal::result_data*)'
collect2: ld returned 1 exit status

Did you rebuild the library after making the change, and if so, are you sure you're linking against the new library binary?

Also, after linking to libpqxx, you'll also want to link to libpq.


Jeroen



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to