SFML community forums

Help => General => Topic started by: Szedou on July 03, 2013, 05:36:52 pm

Title: Problem with debuging VisualStudio 2012
Post by: Szedou 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.
Title: Re: Problem with debuging VisualStudio 2012
Post by: asdatapel on July 03, 2013, 07:52:59 pm
Did you add "-d" to the libraries you linked for the debug build?
Title: Re: Problem with debuging VisualStudio 2012
Post by: Szedou on July 03, 2013, 09:52:49 pm
Thank You so much! Forgot to copy that files...