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

Author Topic: Problem with getting started with SFML - static linking (solved)  (Read 1362 times)

0 Members and 1 Guest are viewing this topic.

Dancer

  • Newbie
  • *
  • Posts: 2
    • View Profile
Hi everyone,

I'm a total beginner, trying to get started with C++ and SFML. I followed the tutorial, got 46 errors, followed it again and got the same effect.

Windows 10 64-bit
Intel HD graphics card
Visual Studio 14 (2015), using Win32 platform.
SFML for VS 14 32-bit

Started with empty C++ project.

Additional Include Directories:
(click to show/hide)

Additional Library Directories:
(click to show/hide)

I have not copied SFML dlls (or anything else) to my project directory. As far as I understand, that is only necessary for dynamic linking.

Additional Dependiencies (release):
(click to show/hide)

Additional Dependiencies (debug):
(click to show/hide)

Preprocessor:
(click to show/hide)

main.cpp:
(click to show/hide)

Output log:
(click to show/hide)

It seems as if sfml-window-s-d.lib is missing some dependiencies, but I have no idea why.
« Last Edit: May 20, 2016, 02:30:59 pm by Dancer »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11032
    • View Profile
    • development blog
    • Email
AW: Problem with getting started with SFML - static linking
« Reply #1 on: May 19, 2016, 05:42:30 pm »
The list of linked libraries contains by default some libraries (e.g. user32.lib, etc). You seem to have removed them by accident.

Cleanest solution would be to start a new project and set things up again.
Alternatively you can google the function name and figure out what additional libraries need to be linked.
« Last Edit: May 19, 2016, 10:58:33 pm by eXpl0it3r »
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

Dancer

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Problem with getting started with SFML - static linking
« Reply #2 on: May 19, 2016, 09:41:13 pm »
Thanks :D The libs were there. I just had to check the option to inherit from parent or project defaults, basically adding ";%(AdditionalDependencies)" at the end. It works now.

 

anything