I created a new SDL Project using the wizard. I specified the path to SDL as "C:\SDL-1.2.15".
The include directory and library directory I checked on the hard drive to be:
C:\SDL-1.2.15\include
C:\SDL-1.2.15\lib
I also copied the SDL.dll into C:\SDL-1.2.15\lib
Also I copied C:\SDL-1.2.15\include & C:\SDL-1.2.15\lib to C:\Program Files (x86)\CodeBlocks\MinGW\include & C:\Program Files (x86)\CodeBlocks\MinGW\lib
I build the project with the sample SDL code for windows and click the green play button to run the code and a get a message box coming up with a red error saying
"The application was unable to start correctly"
The output of the command window is:
Process returned -1073741701 (0xC000007B) execution time : 3.072 s
Press any key to continue.
Does anyone know why this is happening?