SFML community forums

Help => General => Topic started by: fl1ppyXD on December 09, 2018, 07:38:41 pm

Title: LNK1104 Error
Post by: fl1ppyXD on December 09, 2018, 07:38:41 pm
I have tried setting up SFML 3 times now on Visual Studio 2013 and 2017.
On both versions i get the same error : 1>LINK : fatal error LNK1104: cannot open file 'sfml-window-d.lib'
I have followed the tutorial from the SFML site and i have also followed a tutorial from youtube.
In the linker input in the additional dependices i have checked if sfml-window-lib is added and it is i didnt miss it. Then i thought mayebe it was missing in the SFML folders but its also present there. I have tried using the x86 and x64 versions of SFML and i get the same error on both.
Title: Re: LNK1104 Error
Post by: eXpl0it3r on December 09, 2018, 08:12:56 pm
Did you change the additional library directory?

Can you provide the verbose build output?
https://www.sfml-dev.org/faq.php#tr-grl-verbose-ide
Title: Re: LNK1104 Error
Post by: fl1ppyXD on December 09, 2018, 08:30:47 pm
Yea i added the additional libary directorys.


Quote
1>------ Build started: Project: zjalicpeder, Configuration: Debug Win32 ------
1>Microsoft (R) Incremental Linker Version 14.15.26730.0
1>Copyright (C) Microsoft Corporation.  All rights reserved.
1>
1>"/OUT:C:\Users\filip\source\repos\zjalicpeder\Debug\zjalicpeder.exe" /INCREMENTAL "/LIBPATH:C:\SFMLBUILDS\SFMLVS2017\SFML-2.5.1\lib" "sfml-system-d.lib" "sfml-graphics-d.lib" "sfml-audio-d.lib" "sfml-network-d.lib" "sfml-window-d.lib" kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /MANIFEST "/MANIFESTUAC:level='asInvoker' uiAccess='false'" /manifest:embed /DEBUG:FASTLINK "/PDB:C:\Users\filip\source\repos\zjalicpeder\Debug\zjalicpeder.pdb" /SUBSYSTEM:CONSOLE /TLBID:1 /DYNAMICBASE /NXCOMPAT "/IMPLIB:C:\Users\filip\source\repos\zjalicpeder\Debug\zjalicpeder.lib" /MACHINE:X86 Debug\zjalicpeder.obj
1>LINK : fatal error LNK1104: cannot open file 'sfml-window-d.lib'
1>Done building project "zjalicpeder.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Title: Re: LNK1104 Error
Post by: fl1ppyXD on December 10, 2018, 04:06:45 pm
help pls
Title: Re: LNK1104 Error
Post by: fl1ppyXD on December 10, 2018, 05:17:48 pm
I have made a huge breakthrough
I have found that that what ever i put to be last in the linker throws out an error.
Title: Re: LNK1104 Error
Post by: eXpl0it3r on December 10, 2018, 05:38:43 pm
Sounds like to me that files either don't exist at C:\SFMLBUILDS\SFMLVS2017\SFML-2.5.1\lib or the folder has different permissions.
Title: Re: LNK1104 Error
Post by: fl1ppyXD on December 10, 2018, 09:46:00 pm
The folder exists.
The permissions could be the problem?
How do i add full permissions to vs or how can i troubleshoot it atleast?
Title: Re: LNK1104 Error
Post by: AvikB on December 17, 2018, 03:02:30 pm
I have this exact same issue. Everything is properly setup, but getting the same error.
I am using Visual studio 2017.

(https://i.imgur.com/wJvssdG.png)
Title: Re: LNK1104 Error
Post by: fl1ppyXD on December 18, 2018, 08:42:00 pm
Same here
Still havent got a solution.
Visual studio support also havent come up with anything
Title: Re: LNK1104 Error
Post by: AvikB on December 18, 2018, 08:47:05 pm
Ok i actually found an solution thanks to the awesome people at their discord server.
In the project settings, just put the path in double quotes
(https://i.imgur.com/piNGIQN.png)

Also if that does not work, try do this
(https://i.imgur.com/ikQy0zH.png)
Just use full path and put it inside double quotes.
Title: Re: LNK1104 Error
Post by: fl1ppyXD on December 19, 2018, 12:48:15 am
thanks
fixed also