SFML community forums

Help => General => Topic started by: redspah on March 12, 2016, 07:54:47 pm

Title: [FIXED] [Visual Studio 2015] Unresolved External Symbols
Post 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.
Title: AW: [Visual Studio 2015] Unresolved External Symbols
Post by: eXpl0it3r on March 12, 2016, 09:07:17 pm
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.
Title: Re: [Visual Studio 2015] Unresolved External Symbols
Post by: Spirro on March 12, 2016, 09:08:51 pm
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.
Title: Re: [Visual Studio 2015] Unresolved External Symbols
Post by: redspah on March 12, 2016, 09:21:25 pm
Thanks for help. It works now.