Jump to content

  • Log In with Google      Sign In   
  • Create Account


Dude_sWe

Member Since 02 Dec 2013
Offline Last Active Jan 17 2014 09:20 AM
-----

Topics I've Started

Problems getting started, "SDL2/SDL.h: No such file or directory"

02 December 2013 - 07:25 AM

Hi Im relativly new to C++, was going to moving on to SDL My goal was to create a simple 2D game having a movable characters and some obstacles drawn on the screen and move on from there.

 

I followed the guide under tutorials on SDLs page on how to setup on Code::Blocks. https://www.youtube.com/watch?v=wWGtuc5uqF4 downloading all the files and following the steps...

 

I have put theese lines under Search directories:

 

Compiler:

C:\SDL\SDL2_mixer-2.0.0\x86_64-w64-mingw32\include\SDL2

C:\SDL\SDL2-2.0.1\i686-w64-mingw32\include\SDL2

C:\SDL\SDL2_image-2.0.0\i686-w64-mingw32\include\SDL2

 

Linker:

C:\SDL\SDL2_mixer-2.0.0\x86_64-w64-mingw32\lib

C:\SDL\SDL2-2.0.1\i686-w64-mingw32\lib

C:\SDL\SDL2_image-2.0.0\i686-w64-mingw32\lib

 

and put the lines -lmingw32 -lSDL2main -lSDL2 -lSDL2_image -lSDL2_mixer under Linker settings > Other linker options. As I understand this is for 32 bit, I would prefer the 64 hower dont know how to install it.

 

 

I downloaded the project in that tutorial also (SDL001), build and run does work. But however as soon as I edit something like just adding a comment. It gives an error and stop working! :

 

"SDL2/SDL.h: No such file or directory"

 

I downloaded some other tutorials from the same guy, with various results. I been trying to search the web on how to solve this problem without any results. Someone have any idea on what Im missing?

 

 

/Thank you


PARTNERS