Comments (5)
boost/config/user.hpp is for user-specific defines, ie stuff that we don't set. In particular we do not set BOOST_HAS_PRAGMA_DETECT_MISMATCH for gcc as it's unsupported by that compiler. Has someone edited your user.hpp?
from config.
No, the file is still like it was installed using pkgsrc.
The pkgsrc patches for boost are available here:
http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/meta-pkgs/boost/patches/?only_with_tag=MAIN
What do you mean with "we don't set it" - how is the file generated? Where can I look for the code that might add this symbol?
from config.
OK found it - they're running the configure script and taking the results as correct even though it's really only a first guess - there are some things that are quite hard to test for. Let me double check the script.
from config.
Here's what's happening: when the configure script is run, then -Werror=unknown-pragmas
is not set and the test case compiles (albeit with a warning) so the script thinks that the pragma is supported. Then when you compile your code with -Werror or whatever then it crashes and burns.
I could manually tweak the test case so it fails for any unsupported compilers, but that sort of defeats the object really. For now I suggest you just comment out the line the config/user.hpp that defines BOOST_HAS_PRAGMA_DETECT_MISMATCH
BTW the configure script does print out right at the start:
Note that this test script only gives an approximate
configuration - you will need to test the results carefully
using the boost regression test suite before using the results.
It was really designed to give a first approximation when porting Boost to a new platform, usually relying on the pre-configured headers will give better results.
from config.
I changed pkgsrc to use the pre-generated user.hpp
file instead.
Thank you for your helpful advice!
from config.
Related Issues (20)
- Missing BOOST_NO_CXX11_HDR_SCOPED_ALLOCATOR
- Autolink not working in VS2022 vs 17.0.6 HOT 2
- No BOOST_NO_CXX11_ALIGNOF HOT 4
- NVIDIA C++ compiler -cuda option triggers incompatible redefiniton of BOOST_COMPILER
- Support for IAR compiler HOT 1
- "Unknown compiler version" for Visual Studio 16 2019 HOT 2
- BOOST_HAS_INT128 not defined on clang-cl HOT 4
- Delete merged/stale branches HOT 1
- Configuration doesn't work correctly with clang on Linux HOT 5
- [MSVC][std:c++latest] Boost\libs\config run tests failed due to error C2666: 'boost_no_cxx11_unified_initialization_syntax::IdString::operator ==': overloaded functions have similar conversions HOT 3
- Missing define BOOST_NO_CXX11_NULLPTR on OSX with libstdc++ HOT 2
- New error for CLR projects which have no SFINAE HOT 2
- CMake - "lib" prefix bug in implibs of MSVC HOT 3
- BOOST_HAS_BUILTIN/BOOST_HAS_INCLUDE
- missing version macros
- missing header macros for C++23
- Outdated defect macros for Haiku HOT 1
- VS 2022 v17.10
- Missing features of C++/CLI seems to be flagged erroneously HOT 1
- msvc::no_unique_address
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from config.