Original Post
Hi, I have been trying to use the FTGL library to display text in my OpenGL program. Having trouble. I read a tutorial first that said something like "FTGL only needs one include" and then a #include "FTGL/ftgl.h" call. Turns out, that's not really true. Now after having a lot of problems getting it to work correctly, including it in my project, setting the project up correctly for the FreeType2 includes and the .lib file that's necessary, the code itself compiles correctly. BUT! When I try to "use" the FTGL library I get errors. First, I have included the "ftgl.h" file and then I do this: And there is where the program gives these errors: main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall FTPixmapFont::~FTPixmapFont(void)" (__imp_??1FTPixmapFont@@UAE@XZ) referenced in function "void __cdecl createFont(void)" (?createFont@@YAXXZ) main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __thiscall FTPixmapFont::FTPixmapFont(char const *)" (__imp_??0FTPixmapFont@@QAE@PBD@Z) referenced in function "void __cdecl createFont(void)" (?createFont@@YAXXZ) I found one "solution" that told me to set the "Treat wchar_t as Built-in Type" to "No" in my project settings, but that does absolutely nothing. I hope someone here might have the answer I'm looking for. Thanks! Marcus Axelsson [Edited by - tre on November 30, 2009 7:57:00 AM]
void createFont(){
FTGLPixmapFont font("data/xirod.ttf");
}