-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined reference when building PQXX (pqxx::internal::clear_result(pg_result const*) #22
Comments
Looks like there could be a version mismatch... as of a few days ago, PQAlloc no longer exists. Is it possible that you've got an older version of the headers installed, so that the build is picking up those instead of the new ones from the version that you're trying to build? |
Apologies for resurrecting this thread, but it seems rather pertinent to my current situation. I don't see the "PQAlloc" notice, but I receive numerous linking errors stating "undefined reference to `pqxx::internal::clear_result(pg_result const*)'". Can you clarify, please. |
Ah, this may be that problem where I forgot to export In include/pqxx/result.hxx, try prefixing the clear_result declaration with I believe this problem shows up only when linking dynamically against libpqxx. It may be safer to link statically — it's just so easy to sneak in a binary-incompatible change in C++! |
I had already tried changing the line in include/pqxx/result.hxx without success. |
Hopefully the newly pushed 5.1 branch and updated 5.1.1 tag will solve this... |
Yes - version bump solved the problem is it caught the change. |
Hi everyone,
I'm having problems testing the library, I'm getting the following error:
What I did to build the library was:
./configure --prefix=/usr/local --enable-shared
make -j8
sudo make install
The text was updated successfully, but these errors were encountered: