SFML community forums

Help => General => Topic started by: Thorus331 on July 18, 2018, 07:31:48 am

Title: Problem with static linking SFML 2.5.0
Post by: Thorus331 on July 18, 2018, 07:31:48 am
So I have problem with static linking SFML 2.5.0...

I'm using Visual Studio 2017, Windows 8.1

Yes, I have SFML_STATIC in Preprocessor Definitions:
(click to show/hide)

Yes, I'm linking Additional Include Directories to \include:
(click to show/hide)

Yes, I'm linking Additional Library Directories to \lib:
(click to show/hide)

Yes, I've downloaded 64x bit SFML and building my program on 64x bit configuration.

My Additional Dependencies for debug configuration:
(I tried like 20 other combinations, still same error)
(click to show/hide)

And for release same as for debug but wihout -d prefix...

The error I get:
(click to show/hide)

Code I'm testing (this one from tutorial):
(click to show/hide)

Help :(
Title: Re: Problem with static linking SFML 2.5.0
Post by: fallahn on July 18, 2018, 10:26:54 am
If I remember correctly this is due to a mismatch in visual studio versions. Most likely the binaries on the sfml site were built with a slightly different version to what you have installed (ie 17.4 vs 17.5). Make sure your version is fully up to date and if all else fails build sfml from source using your own copy of visual studio