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 ===|
Any help would be appreciated. Thanks!






