Bug#492880: Re[2]: Bug#492880: libpqxx-2.6.9ldbl: undefined reference
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::freemem()': mipostgres.c:(.text._ZN4pqxx8internal7PQAllocINS0_11result_dataEE7freememEv[pqxx::internal::PQAlloc::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]
Bug#492880: Re[2]: Bug#492880: libpqxx-2.6.9ldbl: undefined reference
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::freemem()': > mipostgres.c:(.text._ZN4pqxx8internal7PQAllocINS0_11result_dataEE7freememEv[pqxx::internal::PQAlloc::freemem()]+0x14): > undefined reference to > `pqxx::internal::freemem_result_data(pqxx::internal::result_data*)' > collect2: ld returned 1 exit status You have to recompile whole library with this change from source package if you don't want to wait until new version of library enter to Debian archive. -- Eugene V. Lyubimkin aka JackYF, Ukrainian C++ developer. signature.asc Description: OpenPGP digital signature
Bug#492880: Re[2]: Bug#492880: libpqxx-2.6.9ldbl: undefined reference
> > This is a known problem in 2.6.9: that function should be declared > PQXX_LIBEXPORT. > > > Jeroen > 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::freemem()': mipostgres.c:(.text._ZN4pqxx8internal7PQAllocINS0_11result_dataEE7freememEv[pqxx::internal::PQAlloc::freemem()]+0x14): undefined reference to `pqxx::internal::freemem_result_data(pqxx::internal::result_data*)' collect2: ld returned 1 exit status Best Regards Sergey Nivarov -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]