2

在 vs 2017 中,在 C++ 中。构建调试配置有效,但在寻找调试 obj 的发布模式下链接失败

我的 vs2017 解决方案有两个 c++ 项目 1) findcircles - 一个 DLL(包括要构建的 utils.cpp) 2) findcirclestest - 一个调用/测试 dll 的控制台测试应用程序。

根据下面显示的错误消息,即使我在配置模式下构建解决方案,findcirclestest 的唯一发布构建失败,链接错误 LNK1181,引用 utils.obj 但在 DLL 项目的调试目录中(与发布目录相比) )。

如输出所示,它知道它正在构建 findcirclestest 的 Release 模式。VC++/库目录指定版本(而不是 Dedbug 目录) C:\findcircles\findcircles\x64\Release

解决方案属性页似乎正确地为两个项目指定了版本配置(当解决方案为 Axctive(Release) 时)。项目依赖项显示 findcirclestest 依赖于 findcircles。

2>------ 构建开始:项目:findcirclestest,配置:Release x64 ------ .... 2>LINK:致命错误 LNK1181:无法打开输入文件'....\findcircles\findcircles \x64\Debug\utils.obj'

4

0 回答 0