SFML community forums

Help => General => Topic started by: prako2 on July 15, 2018, 12:40:21 am

Title: Hi, I'm trying to setup SFML but no success
Post by: prako2 on July 15, 2018, 12:40:21 am
I'm following this tutorial https://www.sfml-dev.org/tutorials/2.5/start-vc.php and I'm using VS 2013. If I try to compile code which is down, I'm getting:

1>------ Build started: Project: ConsoleApplication10, Configuration: Release Win32 ------
1>  ConsoleApplication10.cpp
1>ConsoleApplication10.obj : error LNK2001: unresolved external symbol "public: static class sf::Color const sf::Color::Green" (?Green@Color@sf@@2V12@B)
1>ConsoleApplication10.obj : error LNK2001: unresolved external symbol "public: static class sf::RenderStates const sf::RenderStates::Default" (?Default@RenderStates@sf@@2V12@B)
1>c:\users\vartotojas\documents\visual studio 2013\Projects\ConsoleApplication10\Release\ConsoleApplication10.exe : fatal error LNK1120: 2 unresolved externals
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========


I'm sure that I don't have any changed settings because I fully reset VS before setting up SFML. Can someone help me?

Title: Re: Hi, I'm trying to setup SFML but no success
Post by: eXpl0it3r on July 16, 2018, 09:07:05 am
Did you define SFML_STATIC but link SFML dynamically or ther other way around?
Title: Re: Hi, I'm trying to setup SFML but no success
Post by: prako2 on July 22, 2018, 10:23:56 pm
Hmm, thanks, changed to dynamic and it works!