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

Author Topic: [Solved] Linker error with static colors  (Read 2377 times)

0 Members and 1 Guest are viewing this topic.

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
[Solved] Linker error with static colors
« on: September 16, 2010, 08:47:31 pm »
I don't know why, everything works fine, but when I refer to one of the static predefined colors, I get this link error:
Code: [Select]
error LNK2001: símbolo externo "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B) sin resolver

I am using RenderWindow's and the entire graphic library, so I don't know what's going on.

I tried to rebuild the library many times, but no success!

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
[Solved] Linker error with static colors
« Reply #1 on: September 16, 2010, 08:52:04 pm »
Maybe you forgot to define SFML_DYNAMIC?
Laurent Gomila - SFML developer

panithadrum

  • Sr. Member
  • ****
  • Posts: 304
    • View Profile
    • Skyrpex@Github
    • Email
[Solved] Linker error with static colors
« Reply #2 on: September 16, 2010, 09:16:17 pm »
That was the problem. Thanks.

I thogh I would get other kind of errors if I forgot that!