hello I would like to start SDL but I can’t get it to install in my compiler
how do I do this?Please explain it in a step by step matter if possible.
thanks in advance.
matt mccullar schrieb:
hello I would like to start SDL but I can’t get it to install in my
compiler how do I do this?Please explain it in a step by step matter
if possible.
thanks in advance.
(I use a german version, so I’m not sure about my translation)
-
download and extract the development libraries for Win32 VisualC++
-
create a new Win32 project and check the “empty project” field in the
"application settings" -
create/add a C/C++ file in your project (otherwise you won’t have
C/C++ settings in your project settings) -
in your project settings do the following (for all configurations):
C/C++ -> General/Common -> Additional include paths:
add your ‘SDL\include’ path
(if you want, you can add your opengl\include path too)
C/C++ -> Code generation -> Runtime library:
select Multithreaded-DLL
Linker -> General/Common -> Additional library paths:
add your ‘SDL\lib’ path (and opengl\lib)
Linker -> (hmmm, I guess Input -> Additional Dependencies:
add ‘SDL.lib SDLmain.lib’ (and ‘opengl32.lib glu32.lib’ and other
SDL libraries)
I believe that’s all grin
Good luck!