Hash Fellow robcat2075 Posted December 9 Hash Fellow Posted December 9 For future reference: Four mods must be made to a Console project's properties in Visual Studio for SDL to work. They must be made to both the Debug and Release configurations C/C++>General>Additional Include Directories must point to the SDL2/include folder in your SDL repository (probably on your C drive) (Choose "Apply" after every edit to these properties) Linker>General>Additional Library Directories must point to the SDL2/lib/x64 folder in your SDL repository Linker>Input>Additional Dependencies needs this string to be pasted into the circled edit box: opengl32.lib; SDL2.lib;SDL2main.lib Linker>System>Subsystem should be set to Console (/SUBSYSTEM:CONSOLE) Finally, when a "release" exe is created, it must have a copy of SDL2.dll pasted to the same folder it resides in to be able to run. If an exe is distributed, the SDL2.dll will need to be included with it. Ideally, we would have made our SDL template include all these changes for both Debug and Release. @Rodney @Roger 1 Quote
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.