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

Author Topic: Help With Linking and External Symbol Errors  (Read 1578 times)

0 Members and 1 Guest are viewing this topic.

DeadLegend

  • Newbie
  • *
  • Posts: 2
    • View Profile
Help With Linking and External Symbol Errors
« on: May 21, 2015, 10:05:24 pm »
I'm moving a project from a svn repo to my HD, which involved changing a the VS 2013 project properties as I was no longer able to point to the repo sfml folder. I've got everything set up like my lest project, which was working with no errors, but I now have 2 unresolved external symbols:

error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)

error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Black" (?Black@Color@sf@@2V12@B)   


I've attached pics of the project settings. Thanks!
 

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: Help With Linking and External Symbol Errors
« Reply #1 on: May 22, 2015, 02:33:25 am »
You defined SFML_STATIC yet linked the shared libraries. Re-read the tutorial and decide on what you want to do. ;)
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

DeadLegend

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Help With Linking and External Symbol Errors
« Reply #2 on: May 22, 2015, 02:41:56 pm »
Its always the stupid stuff, I removed SFML_STATIC and its working. Thanks!