Coder Social home page Coder Social logo

Comments (11)

tt4g avatar tt4g commented on June 8, 2024

A very similar issue was reported, but the cause could not be determined: #820

Does the same problem occur when compiling with other versions of GCC or with Clang?

from libpqxx.

jtv avatar jtv commented on June 8, 2024

@adastreamer you're using libpqxx straight from its build directory, without installing it... Did you add the include/ directory from the libpqxx build tree to your app's include path?

Without that, the app build won't be able to find libpqxx's configuration header.

from libpqxx.

adastreamer avatar adastreamer commented on June 8, 2024

A very similar issue was reported, but the cause could not be determined: #820

Does the same problem occur when compiling with other versions of GCC or with Clang?

Yes, tried different versions and standards

from libpqxx.

adastreamer avatar adastreamer commented on June 8, 2024

@adastreamer you're using libpqxx straight from its build directory, without installing it... Did you add the include/ directory from the libpqxx build tree to your app's include path?

Without that, the app build won't be able to find libpqxx's configuration header.

I do a static build, could you please list the .a/.so libs which describe the missing symbols? And yes, of course, cmake includes directories automatically, but I also tried to pick manually the following directories:

     PUBLIC vendor/libpqxx/include
     PUBLIC vendor/libpqxx/build/include
     PUBLIC vendor/libpqxx/build/include/pqxx

from libpqxx.

adastreamer avatar adastreamer commented on June 8, 2024

@adastreamer you're using libpqxx straight from its build directory, without installing it... Did you add the include/ directory from the libpqxx build tree to your app's include path?
Without that, the app build won't be able to find libpqxx's configuration header.

I do a static build, could you please list the .a/.so libs which describe the missing symbols? And yes, of course, cmake includes directories automatically, but I also tried to pick manually the following directories:

     PUBLIC vendor/libpqxx/include
     PUBLIC vendor/libpqxx/build/include
     PUBLIC vendor/libpqxx/build/include/pqxx

Anyway, I will double check one more time and provide results if I do not missing anything

from libpqxx.

jtv avatar jtv commented on June 8, 2024

Note these two details though:

  1. Do not add include/pqxx to your include path. The pqxx part should always be explicit in the #include directive.
  2. Put the build directory's include before the source directory's.

from libpqxx.

adastreamer avatar adastreamer commented on June 8, 2024

Note these two details though:

  1. Do not add include/pqxx to your include path. The pqxx part should always be explicit in the #include directive.
  2. Put the build directory's include before the source directory's.

I will check and let you know.

from libpqxx.

jtv avatar jtv commented on June 8, 2024

Thanks.

from libpqxx.

adastreamer avatar adastreamer commented on June 8, 2024

Thanks.

The issue was related to cmake configuration, especially in regards to the linking stage. Seems like it's not been automatically set in the right order if app consists of multiple libraries. I wrote a simple Makefile and recompiled everything step by step, linked manually, everything seems working.

Sorry for disturbing you.

from libpqxx.

jtv avatar jtv commented on June 8, 2024

Glad it's resolved @adastreamer .

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.