SFML community forums

Help => System => Topic started by: gustav9797 on June 25, 2012, 03:19:57 pm

Title: static class sf::Time const sf::Time::Zero error
Post by: gustav9797 on June 25, 2012, 03:19:57 pm
Hi, using SFML 2.0 rc, Windows 7 64bit

1>test2.obj : error LNK2001: unresolved external symbol "public: static class sf::Time const sf::Time::Zero" (?Zero@Time@sf@@2V12@B)
1>C:\Users\Gustav\Documents\Visual Studio 2010\Projects\test2\Release\test2.exe : fatal error LNK1120: 1 unresolved externals

..
Title: Re: static class sf::Time const sf::Time::Zero error
Post by: Laurent on June 25, 2012, 03:31:14 pm
Quote
using SFML 2.0 rc
Static or dynamic? What are your linker and preprocessor settings?
Title: Re: static class sf::Time const sf::Time::Zero error
Post by: gustav9797 on June 25, 2012, 03:35:49 pm
Static,
linker: sfml-network.lib, sfml-system.lib, sfml-graphics.lib
preprocessor: SFML_STATIC
Title: Re: static class sf::Time const sf::Time::Zero error
Post by: Laurent on June 25, 2012, 03:41:12 pm
Quote
linker: sfml-network.lib, sfml-system.lib, sfml-graphics.lib
These are the dynamic libraries. Static libraries have the -s suffix.
Title: Re: static class sf::Time const sf::Time::Zero error
Post by: gustav9797 on June 25, 2012, 03:43:24 pm
Thanks (Omg how could I miss that)!
Title: Re: static class sf::Time const sf::Time::Zero error
Post by: Laurent on June 25, 2012, 03:47:33 pm
Quote
Omg how could I miss that
You missed it because you didn't read the tutorial carefully the first time, and you didn't re-read it after you got the error.
:P

I'm going to change the stylesheet of the website, and put more focus on important stuff in the tutorials. So that hopefully nobody misses important things anymore.