Visual c++ 项目在调试模式下失败,但在发布模式下工作

Visual c++ 项目在调试模式下失败,但在发布模式下工作,visual-c++,Visual C++,我的项目在发布模式下运行良好,但无法在调试模式下运行。我查阅了许多参考文献,但问题无法解决。这是输出。有人能帮我吗?谢谢大家! 1>------ Build started: Project: StreamWFSTComService20130614s2, Configuration: Debug x64 ------ 1>atlsd.lib(atlfuncs.obj) : error LNK2005: "long __cdecl ATL::AtlComModuleRegisterC

我的项目在发布模式下运行良好,但无法在调试模式下运行。我查阅了许多参考文献,但问题无法解决。这是输出。有人能帮我吗?谢谢大家!

1>------ Build started: Project: StreamWFSTComService20130614s2, Configuration: Debug x64 ------
1>atlsd.lib(atlfuncs.obj) : error LNK2005: "long __cdecl ATL::AtlComModuleRegisterClassObjects(struct ATL::_ATL_COM_MODULE70 *,unsigned long,unsigned long)" (?AtlComModuleRegisterClassObjects@ATL@@YAJPEAU_ATL_COM_MODULE70@1@KK@Z) already defined in StreamWFSTComService20130606.obj
1>atlsd.lib(atlfuncs.obj) : error LNK2005: "long __cdecl ATL::AtlComModuleRevokeClassObjects(struct ATL::_ATL_COM_MODULE70 *)" (?AtlComModuleRevokeClassObjects@ATL@@YAJPEAU_ATL_COM_MODULE70@1@@Z) already defined in StreamWFSTComService20130606.obj
1>atlsd.lib(atlfuncs.obj) : error LNK2005: "long __cdecl ATL::AtlInternalQueryInterface(void *,struct ATL::_ATL_INTMAP_ENTRY const *,struct _GUID const &,void * *)" (?AtlInternalQueryInterface@ATL@@YAJPEAXPEBU_ATL_INTMAP_ENTRY@1@AEBU_GUID@@PEAPEAX@Z) already defined in WFSTCOMService.obj
1>atlsd.lib(atlfuncs.obj) : error LNK2005: "void __cdecl ATL::AtlCallTermFunc(struct ATL::_ATL_MODULE70 *)" (?AtlCallTermFunc@ATL@@YAXPEAU_ATL_MODULE70@1@@Z) already defined in StreamWFSTComService20130606.obj
1>atlsd.lib(atlfuncs.obj) : error LNK2005: "long __cdecl ATL::AtlModuleAddTermFunc(struct ATL::_ATL_MODULE70 *,void (__cdecl*)(unsigned __int64),unsigned __int64)" (?AtlModuleAddTermFunc@ATL@@YAJPEAU_ATL_MODULE70@1@P6AX_K@Z1@Z) already defined in WFSTCOMService.obj
1>C:\Windows\SysWOW64\StreamWFSTComService20130918_2\StreamWFSTComService20130918\Debug\StreamWFSTComService20130614s2.exe : fatal error LNK1169: one or more multiply defined symbols found
2>------ Build started: Project: TestSTTCom, Configuration: Debug x64 ------
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targets(1137,5): warning MSB8012: TargetPath(C:\Windows\SysWOW64\StreamWFSTComService20130918_2\StreamWFSTComService20130918\FST\TestSTTCom\.\Debug\TestSTTCom.exe) does not match the Linker's OutputFile property value (C:\Windows\SysWOW64\StreamWFSTComService20130918_2\StreamWFSTComService20130918\StreamWFSTComService20130918\Debug\TestSTT.exe). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
2>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppBuild.targets(1139,5): warning MSB8012: TargetName(TestSTTCom) does not match the Linker's OutputFile property value (TestSTT). This may cause your project to build incorrectly. To correct this, please make sure that $(OutDir), $(TargetName) and $(TargetExt) property values match the value specified in %(Link.OutputFile).
2>  TestSTT.vcxproj -> C:\Windows\SysWOW64\StreamWFSTComService20130918_2\StreamWFSTComService20130918\FST\TestSTTCom\.\Debug\TestSTTCom.exe
========== Build: 1 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========

在Visual Studio中,通过选择项目,然后按alt enter键,可以在项目属性中对其进行检查,然后可以转到“调试”菜单以配置为“调试”

调试生成中包含某些对象文件或库的调试版本和发布版本。根据您正在构建的目标,您只需要使用其中一个(调试或发布)。感谢回复。我是初学者。您能告诉我如何检查对象文件或库的调试和发布版本吗?谢谢。