SFML community forums

Help => General => Topic started by: slotdev on August 23, 2011, 05:32:18 pm

Title: Recompiled SFML and kaboom
Post by: slotdev 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??
Title: Recompiled SFML and kaboom
Post by: Laurent on August 23, 2011, 05:35:18 pm
You forgot to define SFML_STATIC in your preprocessor options ;)
Title: Recompiled SFML and kaboom
Post by: slotdev on August 24, 2011, 09:44:58 pm
Doh!! Thanks Laurent :)

One for the FAQ section.....
Title: Recompiled SFML and kaboom
Post by: Laurent on August 24, 2011, 10:43:11 pm
Quote
One for the FAQ section.....

No, one for the tutorials that are not written yet.