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

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,359 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,829 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
1,016 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
354 questions
{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.