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

Author Topic: static class sf::Time const sf::Time::Zero error  (Read 3959 times)

0 Members and 1 Guest are viewing this topic.

gustav9797

  • Newbie
  • *
  • Posts: 4
    • View Profile
static class sf::Time const sf::Time::Zero error
« 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

..

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: static class sf::Time const sf::Time::Zero error
« Reply #1 on: June 25, 2012, 03:31:14 pm »
Quote
using SFML 2.0 rc
Static or dynamic? What are your linker and preprocessor settings?
Laurent Gomila - SFML developer

gustav9797

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: static class sf::Time const sf::Time::Zero error
« Reply #2 on: June 25, 2012, 03:35:49 pm »
Static,
linker: sfml-network.lib, sfml-system.lib, sfml-graphics.lib
preprocessor: SFML_STATIC

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: static class sf::Time const sf::Time::Zero error
« Reply #3 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.
Laurent Gomila - SFML developer

gustav9797

  • Newbie
  • *
  • Posts: 4
    • View Profile
Re: static class sf::Time const sf::Time::Zero error
« Reply #4 on: June 25, 2012, 03:43:24 pm »
Thanks (Omg how could I miss that)!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: static class sf::Time const sf::Time::Zero error
« Reply #5 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.
Laurent Gomila - SFML developer

 

anything