Giter Site home page Giter Site logo

Comments (4)

tt4g avatar tt4g commented on June 13, 2024

The current minimum required C++ version is C++17.
The default C++ version cannot be changed to C++20.

You can build with C++20 by defining CMAKE_CXX_STANDARD when you run the cmake command (e.g. cmake -DCMAKE_CXX_STANDARD=20).

from libpqxx.

jtv avatar jtv commented on June 13, 2024

Exactly. I plan to stop supporting C++17 soon, but then the whole game will just start over again with C++20 vs. C++23.

from libpqxx.

leleftheriades avatar leleftheriades commented on June 13, 2024

I tried to link the library which got built with default options to a c++20 project and got linker errors in msvc, so i assumed the support for c++17 was dropped that was why i raised an issue. Thank u, i will use the cmake command line argument to ensure i get the version i want

from libpqxx.

jtv avatar jtv commented on June 13, 2024

Yes, it's a thorny issue that the package managers are totally ignoring: you can't reliably link code compiled in one C++ version to code compiled in another.

Perhaps the worst part is that it sometimes works. At least when it breaks consistently you will know when it needs fixing.

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.