SFML community forums
Help => General => Topic started by: redspah on March 12, 2016, 07:54:47 pm
-
Hi.
I've read and followed this tutorial (http://www.sfml-dev.org/tutorials/2.1/start-vc.php) to the letter, and I managed to somehow screw something up, as I can't get libraries to link.
Code used is the test code from the tutorial.
Here is the full error list: http://pastebin.com/RxKx8zD1
In Properties, I have C++ / General / Additional Include Directories set to the correct folder,
(http://i.imgur.com/O3Qil3H.png)
And in C++ / Preprocessor I added macro SFML_STATIC.
(http://i.imgur.com/n6onUgb.png)
In Linker / Input, I set the debug + static versions of .lib files,
(http://i.imgur.com/1Qq2IHy.png)
And in Linker / General, I correctly set the location of the lib folder.
(http://i.imgur.com/tUjxQ7q.png)
I downloaded the Visual C++ 2014 version of library.
Thanks in advance for help.
-
Don't follow the tutorial for SFML 2.1 when you use some newer version. ;)
With the newer versions you also have to link the dependencies. Check out the latest tutorial.
-
Looks to me like you need to look at http://www.sfml-dev.org/tutorials/2.3/start-vc.php again. You show you included the correct SFML libs, but those libs require other includes for themselves on static builds. Look at that page again where it lists each SFML lib and what it depends on like opengl32.lib, freetype.lib, etc... You probably forgot those things.
-
Thanks for help. It works now.