• Advertisement


  • Content count

  • Joined

  • Last visited

Community Reputation

122 Neutral

About Dude_sWe

  • Rank

Personal Information

  • Interests
  1. Oh thanks guys! It works, Yea it was one to many SDL2 directories! I just used  #include "SDL.h" since that was what the rest of the tutorials had...   And I had problems with the tutorial SDL2 0 RPG Game tutorial part 1 (SDL301). Error about zlib1 not found. I simply put the zlib1 into the the game directory. I suppose it was the right thing to do? Just feels a bit strange since I dont know if my program works the way it should or if the tutorialguy forgot to put it in somehow eventhought it works fine for him in the video?..     And I tried to change the the compiler and linker folder to the 64bit, somehow that was not enought. Is there any simpel way to get 64 bit? Elseway Im happy it works now and I suppose I'll be able to change to 64bit in the future when I find a tutorial or something.
  2. 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
  • Advertisement