http://ftgl.sourceforge.net/docs/html/index.html
Put the source in my code, add a linker directory to src/ so it finds the stuff, and it seems to be linking well. Okay good.
So the tutorial says to create a font object like this:
FTGLPixmapFont font("/home/user/Arial.ttf");
Now it outputs an undefined error:
\InitGame.cpp|15|undefined reference to `FTPixmapFont::FTPixmapFont(char const*)'|
\InitGame.cpp|42|undefined reference to `FTPixmapFont::~FTPixmapFont()'|
\InitGame.cpp|42|undefined reference to `FTPixmapFont::~FTPixmapFont()'|
||=== Build finished: 3 errors, 0 warnings ===|
I keep checking if everything is in the correct folder, and they are. Now what's driving me nuts is if I do:
FTGLPixmapFont font(2); //Initlizing the variable with an incorrect argument
The output is:
\InitGame.cpp|15|error: invalid conversion from 'int' to 'const char*'|
\InitGame.cpp|15|error: initializing argument 1 of 'FTPixmapFont::FTPixmapFont(const char*)'|
||=== Build finished: 2 errors, 0 warnings ===|
So it can find the function, it knows it's supposed to take a "char", and it finds the class and everything. Yet when I put back the correct argument, suddenly it's undefined. I'm still hazy on the rules of linking, but I thought I did everything correct, I can't explain why this could be happening.
Any help would be appreciated. Thanks!