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

Author Topic: LNK2001: unresolved external symbol  (Read 6306 times)

0 Members and 1 Guest are viewing this topic.

Nexus

  • SFML Team
  • Hero Member
  • *****
  • Posts: 6286
  • Thor Developer
    • View Profile
    • Bromeon
Re: LNK2001: unresolved external symbol
« Reply #15 on: January 07, 2014, 08:34:09 pm »
Repeating what the error message already tells you: The function toString<unsigned int>(unsigned int const &) is not defined, or its definition is not visible to the linker.

Since this is a function template, you have to ensure that the definition is provided in the header -- the book uses .inl for it, don't use .cpp files. Templates must always be defined in header files if they are used across translation units.
Zloxx II: action platformer
Thor Library: particle systems, animations, dot products, ...
SFML Game Development:

Charsmud

  • Newbie
  • *
  • Posts: 30
    • View Profile
Re: LNK2001: unresolved external symbol
« Reply #16 on: January 07, 2014, 08:46:28 pm »
Thanks, that fixed it.  :)