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

Author Topic: LNK1104 Error  (Read 12897 times)

0 Members and 2 Guests are viewing this topic.

fl1ppyXD

  • Newbie
  • *
  • Posts: 7
    • View Profile
LNK1104 Error
« 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Re: LNK1104 Error
« Reply #1 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
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

fl1ppyXD

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: LNK1104 Error
« Reply #2 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 ==========


fl1ppyXD

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: LNK1104 Error
« Reply #3 on: December 10, 2018, 04:06:45 pm »
help pls

fl1ppyXD

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: LNK1104 Error
« Reply #4 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.

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Re: LNK1104 Error
« Reply #5 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.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

fl1ppyXD

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: LNK1104 Error
« Reply #6 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?

AvikB

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: LNK1104 Error
« Reply #7 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.


fl1ppyXD

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: LNK1104 Error
« Reply #8 on: December 18, 2018, 08:42:00 pm »
Same here
Still havent got a solution.
Visual studio support also havent come up with anything

AvikB

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: LNK1104 Error
« Reply #9 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


Also if that does not work, try do this

Just use full path and put it inside double quotes.

fl1ppyXD

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: LNK1104 Error
« Reply #10 on: December 19, 2018, 12:48:15 am »
thanks
fixed also