- Download the SDL2 sources.
- Select release configuration.
- In the VisualC folder, open the visual studio solution.
- Change the type of project for SDL2 and SDL2main: General -> Configuration Type -> Static Library
- Configuration Properties -> C/C++ -> Code Generation -> Runtime Library : Multi-threaded (/MT)
- You should obtain: SDL2.lib and SDL2main.lib
Here is the list of dependencies to add in the Linker -> Input of the project you want to compile:
winmm.lib
imm32.lib
version.lib
These libraries are already included in visual studio so it should not be necessary to include them with other lib files.
Geen opmerkingen:
Een reactie posten