I can't get SDL to work with Dev-C++
Here's what I've got:
- Dev-C++ version 4.9.9.0
I downloaded SDL from www.libsdl.org: (SDL 1.2)
Under runtime libraries I picked:
- SDL-1.2.7-win32.zip
Under developement libraries I picked 2:
- SDL-devel-1.2.7-VC6.zip
- SDL-devel-1.2.7-mingw32.tar.gz
After copying both "include" and "library" files into Dev-C++'s "include" and "library" files I opened Dev-C++.
I started a new project and went to Project Options
(remember I have version 4.9.9.0)
The under parametres in the linker box I wrote:
-lmingw32
-mwindows
-lSDLmain
-lSDL
(with the l at the beginning being a l as in lame or light)
Then I tried to compile this:
#include <iostream>
#include <stdlib.h>
#include <SDL/SDL.h>
using namespace std;
int main(int argc, char *argv[])
{
system("PAUSE");
return 0;
}
Still it doesn't work....HEEEEELP!!!