Skip to content

Statically linking in VS outputs dynamically linked version anyway #4249

Closed Answered by thomasvt
thomasvt asked this question in Q&A
Discussion options

You must be logged in to vote

Ok. found it.

I thought the build only knew of the directories i configured pointing to the .lib and .h file i want to use, but apparently it ignores that and uses vcpkg behind my back to pick the dynamic version. You can configure vcpkg in project properties > vcpkg and set Use Static Libraries there.

btw, after that i got a linker error about unresolved externals _timeBeginPeriod and _timeEndPeriod --> i had to add 'winmm.lib' to project settings > Linker > Addition Dependencies

It builds now.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thomasvt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant