VS2013 error LNK1104: cannot open file " .lib"
2017-12-22 10:32
405 查看
问题背景:
VS2013
Solution 下有多个project,一个main_project,多个子project分别编译生成.lib.
在main_project属性配置了Linker下的General(附加库路径) 和Input(附加依赖项)
solution属性 配置 Startup Project :Single startup project 选择 main_project
问题:
main_project 编译提示上述错误error LNK1104: cannot open file " .lib"
删除main_project属性配置中Linker下的General(附加库路径)的多余路径。
solution编译依然出错error LNK1104: cannot open file " .lib",并且每次rebuild后提示的.lib会变化
解决:
solution 属性配置 Project Dependencies ,选择main_project,然后勾选上其依赖的子project。
然后rebuild solution succeed!
VS2013
Solution 下有多个project,一个main_project,多个子project分别编译生成.lib.
在main_project属性配置了Linker下的General(附加库路径) 和Input(附加依赖项)
solution属性 配置 Startup Project :Single startup project 选择 main_project
问题:
main_project 编译提示上述错误error LNK1104: cannot open file " .lib"
删除main_project属性配置中Linker下的General(附加库路径)的多余路径。
solution编译依然出错error LNK1104: cannot open file " .lib",并且每次rebuild后提示的.lib会变化
解决:
solution 属性配置 Project Dependencies ,选择main_project,然后勾选上其依赖的子project。
然后rebuild solution succeed!
相关文章推荐
- error LNK1104: cannot open file "xx.exe"
- vs2013 error : cannot open source file "SDKDDKVer.h"
- Visual Studio 2013 error LNK1104: cannot open file 'kernel32.lib'
- LINK : fatal error LNK: cannot open file "uafxcw.lib"的解决方法
- FreeGLUT Tips: Resolve compile issue: error LNK1104: cannot open file 'freeglutd.lib'
- error LNK1104: cannot open file 'Spromeps_Win64.lib'
- error LNK1104: cannot open file 'atlthunk.lib'
- Debug 版的 C/C++ Python 扩展模块链接错误:Error LNK1104 cannot open file 'python35_d.lib'
- error LNK1104: cannot open file 错误解决方案
- KEIL MDK编译报错“error: #5: cannot open source input file "stdarg.h": No”
- error : cannot open source file "SDKDDKVer.h"
- vs2013报错:can't open file "SDKDDKVer.h"
- Open CHM Error:"Cannot open the file:mk:@MSITStore----" on XP of EN version
- LNK1104: cannot open file 'LIBC.lib'
- [QT开发小结]LNK1104: cannot open file ‘gdi32.lib’ 解决方法
- VS2013: Intellisense cannot open source file “*.h”
- win7 + VS2013 出现Cannot open include file: 'SDKDDKVer.h'问题
- 关于iar for stm8: iar Fatal Error[Pe1696]: cannot open source file "xx.h"错误
- clojure之路:Emacs+clojure环境搭建,"File error: Cannot open load file, inversion" "clojure update-first"问题解决
- VC++6.0错误:fatal error:cannot open include file "xxxx.h"修正的一个方法