Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
General
»
MSVC LINK1104 cannot open file 'sfml-graphics-d.obj'
Print
Pages: [
1
]
Author
Topic: MSVC LINK1104 cannot open file 'sfml-graphics-d.obj' (Read 1065 times)
0 Members and 1 Guest are viewing this topic.
abcnb
Newbie
Posts: 12
MSVC LINK1104 cannot open file 'sfml-graphics-d.obj'
«
on:
October 20, 2022, 01:19:22 pm »
MSVC LINK1104 cannot open file 'sfml-graphics-d.obj' in Debug mode.
MSVC LINK1104 cannot open file 'sfml-graphics-d.obj' in Release mode.
Could you answer what it is? Why this is every time wrong?
SFML source / CMake GUI / ignore Build_type / all by default (settings for dynamic linking) / MSVC / Debug / build (-d.lib and -d.dll)/ Release / build ( .lib and .dll) / All ok.
SFML test / all settings from
https://www.sfml-dev.org/tutorials/2.5/start-vc.php
/ all paths correspond
Why does MSVC want .obj ? It is really pain.
Logged
eXpl0it3r
SFML Team
Hero Member
Posts: 11030
Re: MSVC LINK1104 cannot open file 'sfml-graphics-d.obj'
«
Reply #1 on:
October 20, 2022, 01:28:32 pm »
Seems like something in your project setup is wrong.
Can you double check what libraries you're linking?
In release you shouldn't be linking any *-d libraries.
And you also shouldn't have any *.obj listed there, there should be *.lib files.
Logged
Official FAQ:
https://www.sfml-dev.org/faq.php
Official Discord Server:
https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog:
https://duerrenberger.dev/blog/
abcnb
Newbie
Posts: 12
Re: MSVC LINK1104 cannot open file 'sfml-graphics-d.obj'
«
Reply #2 on:
October 20, 2022, 01:38:43 pm »
This was my fault. I forgot to write .lib in Additional Dependencies sfml-system-d.lib and couldn't find this a several hours. Thanks for answer!
Logged
Print
Pages: [
1
]
SFML community forums
»
Help
»
General
»
MSVC LINK1104 cannot open file 'sfml-graphics-d.obj'