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

boost v1.83 not working on VS2022 17.10 needs to be fixed in Boost upstream #750

Open
flourinekk opened this issue Jun 21, 2024 · 5 comments

Comments

@flourinekk
Copy link

flourinekk commented Jun 21, 2024

Boost system doesn't compile.
image

@NeroBurner
Copy link

Which compiler are you using. If it is VS2022 17.10 then we need to wait for the next boost release

boostorg/boost#914

@flourinekk
Copy link
Author

Yeah, that's the problem then, how i can edit hunter files to use workaround so it doesn't replace me files?

@NeroBurner NeroBurner changed the title boost boost v1.83 not working on VS2022 17.10 needs to be fixed in Boost upstream Jul 2, 2024
@NeroBurner
Copy link

If there is a new release you can point your URL to the new package to download using a cmake/hunter.config file. Until then the only workaround is to use an older MSVC version with vc143 runtime instead of vc144

@Deneb128
Copy link

If there is a new release you can point your URL to the new package to download using a cmake/hunter.config file. Until then the only workaround is to use an older MSVC version with vc143 runtime instead of vc144

Problem is not even vc144. I don't even know how but in two days difference with no update of Visual Studio, hunter cannot recognize MSVC_VERSION: 1940
Forcing it to 1939 fails to compile, but if I try to do it manually inside the hunter folder with: .\b2 variant=debug link=static architecture=x86 --without-mpi --without-graph_parallel --without-type_erasure --without-stacktrace it compiles (I even specify only filesystem and program_options in my CMakeLists.txt).

I see then there's a new version of Hunter, but, since it downloads the 1.83 version, it still fails to compile

CXX Compiler:
[cmake] -- The CXX compiler identification is MSVC 19.40.33814.0

@john-forrest
Copy link

I believe this needs Boost 1.86.0 to fix. I'm currently trying to do this but even then there are problems - there is a required patch required for Boost 1.86.0 to install (should be fixed on 1.87.* :)) and I an finding the FindBoost in hunter get's confused and can't link Boost::filesystem on Windows - seems that both 32-bit and 64-bit libraries are installed, possibly to do with the patch, and cmake can't cope. I am getting around the Boost::filesystem issue by generally converting our codebase to use std::filesystem. (Unless you are supporting C++14, which is now the minimum version for Boost anyway, or perhaps targeting a system that has issues, I doubt there are any advantages of using Boost::filesystem except perhaps not having to change many lines of existing code....)

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

4 participants