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

Author Topic: Problem with debuging VisualStudio 2012  (Read 1748 times)

0 Members and 1 Guest are viewing this topic.

Szedou

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Email
Problem with debuging VisualStudio 2012
« on: July 03, 2013, 05:36:52 pm »
Hi!
I have SFML2.0 set-up with VisualStudioExpress2012 for Windows Desktop.
When I release my project everything is fine, but when i try to debug, it shows error:

Error   2   error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)   D:\VisualProjects\SFML Project_1\SFML Project_1\main.obj   SFML Project_1

and

Error   1   error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B)   D:\VisualProjects\SFML Project_1\SFML Project_1\main.obj   SFML Project_1

Error   3   error LNK1120: 2 unresolved externals   D:\VisualProjects\SFML Project_1\Debug\SFML Project_1.exe   1   1   SFML Project_1

Thanks for help.

asdatapel

  • Jr. Member
  • **
  • Posts: 76
    • View Profile
Re: Problem with debuging VisualStudio 2012
« Reply #1 on: July 03, 2013, 07:52:59 pm »
Did you add "-d" to the libraries you linked for the debug build?

Szedou

  • Newbie
  • *
  • Posts: 11
    • View Profile
    • Email
Re: Problem with debuging VisualStudio 2012
« Reply #2 on: July 03, 2013, 09:52:49 pm »
Thank You so much! Forgot to copy that files...