I've installed libsdl 1.2 -dev on my Ubuntu but the problem is that it doesn't understand #include<SDL.h>
And it says:
SDL.h: No such file or directory But when i type:
kit0n@ubuntu:~$ g++ sepand.cpp -o sepand -lSDL The project compiles without any problems. What should I do to make Ubuntu understand SDL.h?
SDL.handsdl.hare not the same thing - your code and error message don't match, please correct that. Also your question is not clear - where does it work and where doesn't it? If the g++ command you quote works, what is the problem exactly?SDL.hbut it works withSDL/SDL.hthe problem is that i can't change the code so i have to make it work with SDL.h-I/usr/include/SDL(or wherever that include directory is located on your machine) to your compile commands (before the source file name).