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

Author Topic: Recompiled SFML and kaboom  (Read 1569 times)

0 Members and 1 Guest are viewing this topic.

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Recompiled SFML and kaboom
« on: August 23, 2011, 05:32:18 pm »
I get hundreds of errors like this:

1>TextManager.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __thiscall sf::Clock::Clock(void)" (__imp_??0Clock@sf@@QAE@XZ)

1>Platform.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall sf::Clock::Reset(void)" (__imp_?Reset@Clock@sf@@QAEXXZ)

1>Anim.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __thiscall sf::Sprite::~Sprite(void)" (__imp_??1Sprite@sf@@UAE@XZ)

VS2005, debug build. The release version compiles fine. CMAKE and then VS created all lib files -s-d version, seemingly OK.

What have I done wrong??
SFML 2.1

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Recompiled SFML and kaboom
« Reply #1 on: August 23, 2011, 05:35:18 pm »
You forgot to define SFML_STATIC in your preprocessor options ;)
Laurent Gomila - SFML developer

slotdev

  • Sr. Member
  • ****
  • Posts: 385
    • View Profile
Recompiled SFML and kaboom
« Reply #2 on: August 24, 2011, 09:44:58 pm »
Doh!! Thanks Laurent :)

One for the FAQ section.....
SFML 2.1

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Recompiled SFML and kaboom
« Reply #3 on: August 24, 2011, 10:43:11 pm »
Quote
One for the FAQ section.....

No, one for the tutorials that are not written yet.
Laurent Gomila - SFML developer

 

anything