How to fix LNK1181 error (including libs)
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:
- Added the
lua54.lib
path in Additional Library Directories. - Added
lua54.lib
in Additional Dependencies under the Linker Input section. - Cleaned and rebuilt the project, but the error persists.
Could you help me understand why the linker is trying to open a libs.obj
file (note - libs is a folder)
, and how to resolve this issue?