-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
How to switch the visual studio version? #1234
Comments
edit, как пример
профит ) |
Hi @mp5557, Take a look at our triplet documentation: https://vcpkg.readthedocs.io/en/latest/users/triplets/. Basically, you can create a new triplet that has set(VCPKG_PLATFORM_TOOLSET v140) and we'll use VS2015 to build the libraries inside that triplet. Note that VS2017 and VS2015 are binary compatible, so ideally you shouldn't need to do this, but we definitely have the escape hatch for when things go wrong. |
VS2017 and VS2019 are not: error LNK2001: unresolved external symbol ___CxxFrameHandler4 |
VS 2015 Update 3 - VS 2022 ARE binary compatible, but specifically you have to LINK with the latest version of the MSVC Runtime. You can use a mix of static C/C++ libraries built with VS 2015 Update 3, VS 2017, VS 2019, and/or VS 2022, but you must LINK it with the newest one in the mix (i.e. VS 2022). See Microsoft Learn. The symbol |
I have both VS2015 and VS2017. The default VS version of vcpkg is VS2017. Is there any method to switch the VS version of vcpkg? Thanks.
The text was updated successfully, but these errors were encountered: