This is fortunately hopefully a pretty easy problem. Basically, the compiler throws a fatal error my way whenever I try to compile my program - it can't access SDL.h. Since it's a fatal error (and if I understand the term 'fatal error' correctly, that means it stops trying to compile), I suspect that main.cpp should have the same problem if only SDL_ttf.h and not main.cpp were given access to SDL.h somehow. Here's my main.cpp:
1 2 3 4 5 6 7 8 9 10 11 12 13
|
#include <SDL/SDL.h>
#include "SDL_ttf.h"
int main ( int argc, char** argv )
{
if(SDL_Init(SDL_INIT_EVERYTHING) < 0) {
return false;
}
TTF_Init();
TTF_OpenFont(NULL, 0);
TTF_Quit();
SDL_Quit();
}
|
And here's the include statement for SDL.h in SDL_ttf.h:
I can include all of SDL_ttf.h if necessary, but I don't believe I made any changes, sooooo probably not necessary.
For some reason, when I try to compile this, SDL_TTF.h spits out an error:
fatal error: SDL.h: No such file or directory
And while I've fiddled with it for a while to try and get it working, I haven't really found anything that works. I have -lSDL_ttf set as a complier option and I have /usr/include added under Settings->Compiler->Linker Settings->Link Libraries, which, to the best of my knowledge, should allow SDL_ttf.h (and anything else) access to any library installed via the package manager.
Am I missing something? I'm sure it's just some stupid little error somewhere (as most of my problems are), but I've been trying to figure it out for quite a while now and just can't get it.
Thanks in advance for the answers to my probably ridiculously simple question :p