Reputation: 73
I'am getting an error shown below, I'am using visual studio 2017 community and I'am trying to run a project I downloaded from github.
1>------ Build started: Project: CurveFever, Configuration: Debug Win32 ------
1>LINK : fatal error LNK1104: cannot open file 'sfml-system-s-d.lib'
1>Done building project "CurveFever.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
So far I have already uninstalled Visual Studio 2017 and re installing it again, I have already tried searching for questions similar to mine and what I found did not work. I have already checked whether sfml-system-s-d.lib
is in the directory of my SFML
folder and its in there.
Upvotes: 2
Views: 2195
Reputation: 1
Had same error. Then I go to:
Properties->Linker->General->Enable Incremental Linking 1 - it was "yes (/INCREMENTAL)" by default. I typed manually and save. After get a diferent error: 2 - go back to Properties->Linker->General->Enable Incremental Linking and change back to "yes (/INCREMENTAL)" selecting in the drop down arrow at the end of the field. It just compile ok after that.
The main differece I've noted is that after that the "Yes (/INCREMENTAL)" is now bold. Maybe just reaply it, or aply "no" and then yes again, can be enougth.
Upvotes: 0
Reputation: 36
Your linker seem not to be able to find 'sfml-system-s-d.lib' You have to add the path to the library to the linker options:
Right-klick on your project->Properties->Linker->Additional Library Directories
Write the path to the folder containing your library, e.g. c:\lib\
Upvotes: 2