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

Author Topic: [FIXED] [Visual Studio 2015] Unresolved External Symbols  (Read 2209 times)

0 Members and 1 Guest are viewing this topic.

redspah

  • Newbie
  • *
  • Posts: 2
    • View Profile
[FIXED] [Visual Studio 2015] Unresolved External Symbols
« on: March 12, 2016, 07:54:47 pm »
Hi.

I've read and followed this tutorial 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,



And in C++ / Preprocessor I added macro SFML_STATIC.



In Linker / Input, I set the debug + static versions of .lib files,



And in Linker / General, I correctly set the location of the lib folder.



I downloaded the Visual C++ 2014 version of library.

Thanks in advance for help.
« Last Edit: March 12, 2016, 09:21:56 pm by redspah »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
AW: [Visual Studio 2015] Unresolved External Symbols
« Reply #1 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Spirro

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: [Visual Studio 2015] Unresolved External Symbols
« Reply #2 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.

redspah

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: [Visual Studio 2015] Unresolved External Symbols
« Reply #3 on: March 12, 2016, 09:21:25 pm »
Thanks for help. It works now.

 

anything