Table of Contents Solve LINK: fatal error LNK1181: Unable to open input file “avdevice.lib” error: command ‘D:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.27.29110\bin\Hostx86 \x86\link.exe’ failed with exit status 1181 Problem Description solution Step 1: Identify missing library files Step 2: Add library file path to project configuration Step 3: Recompile the project Summarize Solution to LINK: fatal […]
Tag: lnk
Debugging LNK1123 Failure during conversion to COFF using IDA and windbg: invalid or corrupt file (medium)
Debugging LNK1123 failure during conversion to COFF using IDA and windbg: invalid or corrupt file (medium) Original Summarize Troubleshooting process monitor vs IDA windbg debug rc CVT1101 LNK1123 Foreword In the previous article, we summarized the use of windbg and IDA to find out the root cause of the cvtres.exe error, but left a few […]
Debugging LNK1123 Failure during conversion to COFF using IDA and windbg: Invalid or corrupt file (Part 1)
Using IDA and windbg to debug LNK1123 failed during conversion to COFF: file is invalid or damaged (Part 1) Original Summarize Troubleshooting process monitor vs IDA windbg debug rc CVT1101 LNK1123 Origin I was struggling with the problem of splitting rc some time ago, and I have compiled the problems I encountered into a document. […]
Debugging LNK1123 Failure during conversion to COFF using IDA and windbg: Invalid or corrupt file (below)
Using IDA and windbg to debug LNK1123 failed during conversion to COFF: file is invalid or damaged (Part 2) Original Summarize Troubleshooting process monitor vs IDA windbg debug rc CVT1101 LNK1123 Foreword In the previous two articles (here, here), we summarized how to use windbg and IDA to find out the root cause of the […]
Get all shortcuts associated with the file.lnk
@goto :main_20230214_010127 :main_20230214_010127 @echo off set my=123 set “filepath=%~1” if defined filepath set filepath if not exist “%filepath%” set/p “filepath=filepath=” set filepath| findstr /i /r “^filepath=”.*”$” > nul & amp; & amp; set “filepath=%filepath:~1,-1%” if not exist “%filepath%” exit /b 1 echo “lnkpath1=%filepath%” set returnVal= call :get_lnk_target3 filepath returnVal echo. if defined returnVal ( echo.dir […]
Get the full path of the target file through shortcut (.lnk)
This article will introduce some of the main structures of lnk files and use C++ to implement the path to read the lnk target file Source code attached at the end .lnk file structure Because our requirement is only to read the path of the lnk target file, we do not need to understand all […]
LNK2019 error reported when compiling a static library
CMake learning was mentioned earlier The end of the article basically covers the compilation problems I encountered, but after getting a compiled .lib file, it needs to be successfully referenced in the project to truly complete the compilation of the static library. Well, the reason why I say this is because I got the LNK2019 […]
How Windows Opens and Edits .lnk Files
Article directory 1. Background 2. View/modify `.lnk` file content Solution 1: Use the `type command` to view Solution 2: Change the file suffix of `.lnk` to `.txt` and check again Solution 3: Open with `Notepad` or `NodePad++` Solution 4: Use `HxD hex editor` hexadecimal editor Scenario 5: Use third-party libraries to view or edit 1. […]
fatal error LNK1120_ 3 unresolved externals
LIBCMT.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __guard_eh_cont_table LIBCMT.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __guard_eh_cont_count LIBCMT.lib(loadcfg.obj) : error LNK2001: unresolved external symbol __volatile_metadata hello.exe : fatal error LNK1120: 3 unresolved externals __guard_eh_cont_table __guard_eh_cont_count __volatile_metadata These symbols or function references are defined in the LIBCMT.lib library file, add it to LIBenvironment variable Just in D:\Program\VisualStudio2022\VC\Tools\MSVC\14.34.31933\lib\x64 […]
error: LNK2001: unresolved external symbol “public: virtual struct QMetaObject const * __cdecl
Qt series article directory Article directory Qt series article directory foreword 1. What is the qmake command in QtCreator? 2. Solve Foreword I added the corresponding signals and slots to the code, but the compilation still reported an error: #ifndef PROJECTWIN_H #define PROJECTWIN_H namespace Ui {<!– –> class ProjectWin; } ProjectWin class declaration header file […]