Visual Studio:LINK:致命错误LNK1181:无法打开输入文件 [英] Visual Studio: LINK : fatal error LNK1181: cannot open input file
问题描述
我现在在Visual Studio 2010中遇到一个奇怪的错误。
I've been encountering a strange bug in Visual Studio 2010 for some time now.
我有一个解决方案包含一个编译为静态库的项目,
I have a solution consisting of a project which compiles to a static library, and another project which is really simple but depends on this library.
有时候,在最后一天极其频繁,在重建解决方案或只是编译它与1-3改变源文件,我得到以下错误:
Sometimes, in the last days extremely frequent, after Rebuilding the Solution or just compiling it with 1-3 changed source files, I get the following error:
2>LINK : fatal error LNK1181: cannot open input file 'thelibrary.lib'
========== Rebuild All: 1 succeeded, 1 failed, 0 skipped ==========
其中编译 thelibrary.lib
是成功的,没有任何错误或警告。
Where compiling thelibrary.lib
was a success without any errors or warnings.
我已经尝试清洁解决方案,但这并不总是起作用。
I have tried cleaning the solution, but that doesn't always work.
- li>
- What is wrong here?
推荐答案
在Linker,一般的附加库目录中,将目录添加到.dll或.libs您已包括在链接器,输入中。
如果将它放在VC ++目录,库目录中,它不起作用。
In Linker, general, additional library directories, add the directory to the .dll or .libs you have included in Linker, Input. It does not work if you put this in VC++ Directories, Library Directories.
这篇关于Visual Studio:LINK:致命错误LNK1181:无法打开输入文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!