How to fix LNK1181 error (including libs)

Yuri 0 Reputation points
2025-01-15T17:57:11.9633333+00:00

Severity Code Description Project File Line Suppression State Details

Error LNK1181 cannot open input file 'C:\6money\libs.obj' Dll1 C:\6money\Money\Dll1\LINK 1

Hello,

I'm currently facing an issue when trying to link the lua54.lib library in my project. The error message I'm receiving is:
LNK1181 cannot open input file 'C:\6money\libs.obj' Dll1 C:\6money\Money\Dll1\LINK 1
This occurs after I add the directory for lua54.lib in the project settings. However, I have never had a .obj file in my project, only the .lib file. The project seems to be mistakenly looking for a libs.obj file instead of correctly linking the lua54.lib file.

Here are the steps I followed:

  1. Added the lua54.lib path in Additional Library Directories.
  2. Added lua54.lib in Additional Dependencies under the Linker Input section.
  3. Cleaned and rebuilt the project, but the error persists.

Could you help me understand why the linker is trying to open a libs.objfile (note - libs is a folder) , and how to resolve this issue?

User's image

User's image

User's image

User's image

Developer technologies | Visual Studio | Debugging
Developer technologies | Visual Studio | Testing
Developer technologies | C++
Developer technologies | Visual Studio | Other
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.