Skip to content
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

-std=c++11 breaks compilation with boost=1.87.0 #406

Open
mschubert opened this issue Mar 3, 2025 · 0 comments
Open

-std=c++11 breaks compilation with boost=1.87.0 #406

mschubert opened this issue Mar 3, 2025 · 0 comments

Comments

@mschubert
Copy link

The build/linux/release/Makefile specifies:

C_OPTIONS= -O3 -DNDEBUG -std=c++11

which leads to a compilation error with the current boost library:

/usr/include/boost/math/tools/config.hpp:28:6: warning: #warning "Boost.Math requires C++14" [-Wcpp]
   28 | #    warning "Boost.Math requires C++14"
      |
In file included from /usr/include/boost/math/tools/precision.hpp:15,
                 from /usr/include/boost/math/special_functions/sinc.hpp:19,
                 from /usr/include/boost/math/quaternion.hpp:21:
/usr/include/boost/math/tools/type_traits.hpp:208:12: error: ‘is_final’ has not been declared in ‘std’
  208 | using std::is_final;
      |            ^~~~~~~~

...followed by 100 more errors...

The solution is to remove -std=c++11 (and the check for this being set) or set it to -std=c++14.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant