-
I'm trying to build my game statically linked with raylib. I tried
In both cases i got it to build in VS, configuring Project settings for the Include and Library Directories and added "raylib.lib" to my Additional Dependencies. Yet still, building keeps on adding the raylib.dll to the build output and the .exe clearly needs it, so it's not statically linking. Any idea what else i can try? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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 btw, after that i got a linker error about unresolved externals It builds now. |
Beta Was this translation helpful? Give feedback.
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 DependenciesIt builds now.