DEVC++中编译SDL
Tuesday, 3. October 2006, 04:28:06
Download Dev C++, the runtime binary of SDL and the developers version of SDL (for mingw32)
Unzip all files and install
Copy the runtime binary of SDL, SDL.dll, to C:\WINDOWS. This makes the library available system wide.
Unzip the i386-mingw32msvc.tar file within the SDL developers version.
Copy the i386-mingw32msvc\include\SDL folder that's created to C:\Dev-C++\Include This makes the SDL headers available to DevC++.
Copy everything in the i386-mingw32msvc\lib folder to C:\Dev-C++\Lib This makes the SDL libraries available to DevC++
Create a new DevC++ project and add files to it.
Go to Project->Options and add "-lmingw32 -lSDLmain -lSDL -mwindows" to the linker commands text box.
Compile, link, and have fun!!








