2014-02-19 46 views
1

我的项目在发布模式下运行良好,但无法在调试模式下运行。我搜索了很多参考文献,但问题无法解决。这是输出。谁能帮我?谢谢!项目在调试模式下失败,但在发布模式下工作

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)" ([email protected]@@[email protected]@[email protected]) already defined in StreamWFSTComService20130606.obj 
1>atlsd.lib(atlfuncs.obj) : error LNK2005: "long __cdecl ATL::AtlComModuleRevokeClassObjects(struct ATL::_ATL_COM_MODULE70 *)" ([email protected]@@[email protected]@@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 * *)" ([email protected]@@[email protected]@[email protected]@[email protected]) already defined in WFSTCOMService.obj 
1>atlsd.lib(atlfuncs.obj) : error LNK2005: "void __cdecl ATL::AtlCallTermFunc(struct ATL::_ATL_MODULE70 *)" ([email protected]@@[email protected]@@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)" ([email protected]@@[email protected]@[email protected]@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 ========== 
+0

,你既有调试以及包含在您的调试版本中的一些目标文件或库的发行版本。您只需要使用其中的一个(调试或发布),具体取决于您正在构建的目标。 –

+0

感谢您的回复。我是一名初学者。你能告诉我如何检查目标文件或库的调试版本和发布版本吗?谢谢。 – Kervin

回答

0
在Visual Studio

,你可以选择你的项目,然后按下Alt-Enter,那么你可以去菜单调试检查项目中的属性来配置为“调试”

相关问题