SFML community forums
Help => Graphics => Topic started by: onEnterFrame on January 23, 2011, 04:31:56 am
-
all portions of my test code compile except a FontManager i was working on to group loaded fonts. here is the error:
1>FontManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Unicode::Text::Text(unsigned int const *)" (__imp_??0Text@Unicode@sf@@QAE@PBI@Z)
1>C:\Users\Justin\Documents\Visual Studio 2010\Projects\SFMLTest\Release\SFMLTest.exe : fatal error LNK1120: 1 unresolved externals
i know ive done something stupid and if i had to guess its probably something to do with not having the freetype.lib in the project.
or did i not compile the graphics.dll correctly to begin with? when i compiled everything for VC 2010...
or are my character encoding settings in the project wrong?
or do i need a freetype.dll? there are none in the bin folder. do i need to compile one?
-
i was right i was stupid.
fonts are dependent on sfml-system.lib
i was trying to only introduce lib files as i needed them. maybe put a note to that effect in the tutorials to stop people asking but.. yeah.. i guess i should have known.
its even right there in the include list of font.hpp.
heh. dont know how i missed it.