-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Build fails with QL_COMPILE_WARNING_AS_ERROR=ON due an uniniti #1968
Comments
Do you also see the error with a more recent version of boost? Usually if you're using a very new compiler version you'll get fewer warnings and errors with the latest version of boost. |
@sweemer Currently i'm getting Boost from the OS package manager, so don't have a way to get anything newer. I am also hoping to get the build hooked up to vcpkg so i have more flexibility and control there, but that didn't work at my first attempt, and will need some fiddling. I can easily try with older GCCs, though. But i'm using the official GCC docker images, and most of the older GCCs are on older Debians with older Boosts! GCC 12 is also on Debian 12 though. |
I made an example for building QuantLib with vcpkg here. Let me know if it doesn't work for you. |
Building 1.34 like this:
Fails with:
While it builds fine without QL_COMPILE_WARNING_AS_ERROR set. Although it does report this as a warning, of course.
I believe this is to do with this test precondition:
I have to confess i have no idea how to fix that, as i do not know Boost::Test preconditions or standard library functors!
The text was updated successfully, but these errors were encountered: