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

Author Topic: LNK1104 cannot open file 'sfml-system-d.obj'  (Read 1883 times)

0 Members and 1 Guest are viewing this topic.

Lombadd

  • Newbie
  • *
  • Posts: 1
    • View Profile
LNK1104 cannot open file 'sfml-system-d.obj'
« on: October 31, 2020, 05:12:24 pm »
Hi,

I'm a newbie, so sorry if any of this is obvious. I've been trying to get SFML to work with Visual Studio C++ 2019. I downloaded the Visual C++ 15 (2017) - 32-bit version of SFML from the website.  When I tried to set it up, I keep getting the LNK1104 error mentioned in the title. I get this error no matter which of the sfml-module files I put into the linker's additional dependencies.

Something that may or may not be related, I accidentally set all the files in SFML-2.5.1\lib to open with notepad (I was poking around and got too curious for my own good). Not sure if this affects anything!

I've attached photos of my setup, hopefully it all works.



Thank you!


eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11030
    • View Profile
    • development blog
    • Email
Re: LNK1104 cannot open file 'sfml-system-d.obj'
« Reply #1 on: November 10, 2020, 11:49:09 am »
You need to link the debug libraries also with .lib at the end, e.g. sfml-system-d.lib
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/