Skip to content

Explicitly use Platform Toolset v143 with vcpkg#67

Merged
Fexty12573 merged 2 commits into
Fexty12573:masterfrom
Pizzabelly:vc-143
May 22, 2026
Merged

Explicitly use Platform Toolset v143 with vcpkg#67
Fexty12573 merged 2 commits into
Fexty12573:masterfrom
Pizzabelly:vc-143

Conversation

@Pizzabelly
Copy link
Copy Markdown
Contributor

@Pizzabelly Pizzabelly commented May 21, 2026

I'm not super familiar with Visual Studio, so I might be missing something, but this caused me a headache after installing VS 2022 and 2026 on the same machine. I was facing link errors that stemmed from dependencies compiled with different toolchain versions. From what I could deduce this should be what's necessary for opening the solution and building to "just work" if targeting an older Platform Toolset than the newest version installed on the system. There is a discussion about this problem here microsoft/vcpkg#25905. I don't think removing the x86 target is required but I figure it makes sense because we need the loader DLL to be x64 because the game exe is x64.

@Pizzabelly
Copy link
Copy Markdown
Contributor Author

I force pushed to remove the added newlines on the vcxproj files because visual studio also removes a newline at end of file every time it writes them.

@Pizzabelly
Copy link
Copy Markdown
Contributor Author

I re-ran vcpkg without these changes so I can post the specific errors.

Severity Code Description Project File
Error LNK2001 unresolved external symbol __std_find_last_not_of_trivial_pos_1 mhw-cs-plugin-loader tinyobjloader.lib(tiny_obj_loader.cc.obj)
Error LNK2001 unresolved external symbol __std_find_first_not_of_trivial_pos_2 mhw-cs-plugin-loader libnethost.lib(utils.cpp.obj)

@Fexty12573 Fexty12573 merged commit a1144ac into Fexty12573:master May 22, 2026
0 of 2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants