lib链接器相对路径

lib链接器相对路径

本文介绍了VS 2008 .lib链接器相对路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的VS 2008解决方案中有VC项目(A,B).两者当前都是类型为静态库的win32应用程序.
项目B依赖于$ .solutionDir)\ Debug目录中生成的A.lib.我已在项目B的属性中将"$(solutionDir)\ Debug"指定为其他库目录.但这仍然给我错误
链接:致命错误LNK1181:无法打开输入文件A.lib.

此外,如果我提供了调试目录的绝对路径,则构建过程可以正常运行.

请帮助我解决这种情况而不使用绝对路径.


感谢您的快速回复.我已经设置了依赖项,此外,宏和文件使用适当的大小写正确拼写了.

I have VC projects in my VS 2008 solution say (A, B). Both are currently win32 application of type static library.
Project B is dependent on A.lib, which is generated in $(solutionDir)\Debug directory. I have specified "$(solutionDir)\Debug" as additional library directories in project B''s properties. But it still gives me error
LINK : fatal error LNK1181: cannot open input file A.lib.

Further if I provide the Absolute path of the debug directory the build process runs fine.

please help me solve this situation without using an Absolute path.


Thanks for the quick reply. I have already set the dependencies, further the macros and files were spelled correctly with proper case.

推荐答案




这篇关于VS 2008 .lib链接器相对路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-24 17:55