TUTORIAL_Using SDL in Netbeans - CSCI150GTeam/GTeamProject GitHub Wiki
SDL
- Go to http://www.libsdl.org/release/SDL-devel-1.2.15-mingw32.tar.gz to download the SDL library
- Unzip the files to a folder
- Copy the contents of the /lib and /include folders to their counterparts in C:\MinGW
- Right click your test project and go to properties
- Go to Build -> Linker, expand 'libraries' and press the '...' button
- Click 'Add Library' on the right, and natigate to C:\MinGW\lib and add the following three libraries in this order: libmingw32.a, libSDLmain.a, libSDL.dll.a
- Copy 'SDL.dll' from your extracted SDL folder into the following directory- C:\Users"name of your user"\Documents\NetBeansProjects"name of project"\dist\Debug\MinGW-Windows\
- Now add some SDL code into your main function to test if SDL was set up properly, if you can get a window to appear on screen you did it right
Instructions taken from this page, credit to Joseph for finding it