Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Font link error.  (Read 1825 times)

0 Members and 1 Guest are viewing this topic.

onEnterFrame

  • Newbie
  • *
  • Posts: 10
    • View Profile
Font link error.
« 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:

Code: [Select]

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?

onEnterFrame

  • Newbie
  • *
  • Posts: 10
    • View Profile
Font link error.
« Reply #1 on: January 24, 2011, 12:49:19 am »
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.

 

anything