GithubHelp home page GithubHelp logo

Comments (6)

jtv avatar jtv commented on August 27, 2024

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?

from libpqxx.

scottfurry avatar scottfurry commented on August 27, 2024

Apologies for resurrecting this thread, but it seems rather pertinent to my current situation.
I'm updating code that uses libpqxx but linking fails.
libpq ver 9.6.5 build date 2017Sep06
libpqxx ver 5.1.0 build date 2017Aug03

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.

from libpqxx.

jtv avatar jtv commented on August 27, 2024

Ah, this may be that problem where I forgot to export clear_result! It's fixed in 6.0, but obviously that won't help 5.1.

In include/pqxx/result.hxx, try prefixing the clear_result declaration with PQXX_LIBEXPORT. So it becomes:
PQXX_LIBEXPORT void clear_result(const pq::PGresult *);

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++!

from libpqxx.

scottfurry avatar scottfurry commented on August 27, 2024

I had already tried changing the line in include/pqxx/result.hxx without success.
This lead to creating issue #33.

from libpqxx.

jtv avatar jtv commented on August 27, 2024

Hopefully the newly pushed 5.1 branch and updated 5.1.1 tag will solve this...

from libpqxx.

scottfurry avatar scottfurry commented on August 27, 2024

Yes - version bump solved the problem is it caught the change.

from libpqxx.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.