Hello, I am attempting to draw a hexagon using CodeBlocks and SDL. I have tried countless times to include "SDL_draw.h", but no matter what I do, whenever I try to compile it complains "SDL.h: No such file in directory".
I have read many tutorials online that either do not work or I do not understand. I'm not very familiar with Codeblocks either. Could someone please explain it to me in the absolute bare basics?
...Uh... I'm not sure I understand. SDL_draw.h isn't just a solitary file. It comes with all sorts of crazy libraries and stuff which I don't know where to put.
export LD_LIBRARY_PATH=give ur library path
use: in between if u have multiple libs
export USER_INCLUDE="-Igive ur header files path"
use -I before each path
Basically, what happens when I compile is the "SDL_draw.h" file is automatically opened, the line shown is the #include "SDL.h" from within "SDL_draw.h", and the complaint is that SDL.h is not in the directory.
However, in the main.cpp file, the first line of code is #include <SDL/SDL.h>, which does not cause problems.