首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

应用树,报错有关问题LNK2001 LNK2019 环境 vs2008

2012-10-12 
应用树,报错问题LNK2001LNK2019 环境 vs2008在应用树的过程中,我把树的扩展类写在了单独的vclib类中,而另

应用树,报错问题LNK2001 LNK2019 环境 vs2008
在应用树的过程中,我把树的扩展类写在了单独的vclib类中,而另一个类应用树时报错,ConfigBase.obj : warning LNK4217: 本地定义的符号 ?ACMGetConfigPathName@@YA?AV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@PAUHINSTANCE__@@PBD@Z (class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > __cdecl ACMGetConfigPathName(struct HINSTANCE__ *,char const *)) 在函数 "public: class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > __thiscall CConfigBase::GetConfigPath(void)" (?GetConfigPath@CConfigBase@@QAE?AV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@XZ) 中导入
StationSetupConfig.obj : warning LNK4217: 本地定义的符号 ?ACMGetConfigPathName@@YA?AV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@PAUHINSTANCE__@@PBD@Z (class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > __cdecl ACMGetConfigPathName(struct HINSTANCE__ *,char const *)) 在函数 __ehhandler$?Write@CStationSetupConfig@@MAEXPAVCXmlDocumentWrapper@@@Z 中导入
ConfigBase.obj : warning LNK4217: 本地定义的符号 ?ACMGetModulePathName@@YA?AV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@PAUHINSTANCE__@@PBD1@Z (class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > __cdecl ACMGetModulePathName(struct HINSTANCE__ *,char const *,char const *)) 在函数 "public: class ATL::CStringT<char,class StrTraitMFC_DLL<char,class ATL::ChTraitsCRT<char> > > __thiscall CConfigBase::GetAppPath(void)" (?GetAppPath@CConfigBase@@QAE?AV?$CStringT@DV?$StrTraitMFC_DLL@DV?$ChTraitsCRT@D@ATL@@@@@ATL@@XZ) 中导入
StationPage.obj : error LNK2001: 无法解析的外部符号 "protected: static struct AFX_MSGMAP const * __stdcall CResizablePage::GetThisMessageMap(void)" (?GetThisMessageMap@CResizablePage@@KGPBUAFX_MSGMAP@@XZ)
StationPage.obj : error LNK2019: 无法解析的外部符号 "public: static struct CRuntimeClass * __stdcall CResizablePage::GetThisClass(void)" (?GetThisClass@CResizablePage@@SGPAUCRuntimeClass@@XZ),该符号在函数 "protected: static struct CRuntimeClass * __stdcall CStationPage::_GetBaseClass(void)" (?_GetBaseClass@CStationPage@@KGPAUCRuntimeClass@@XZ) 中被引用
..\BIN\Debug\StationSetup.exe : fatal error LNK1120: 2 个无法解析的外部命令
</pre></table><table width=100% bgcolor=#DFDFE5><tr><td><font face=arial size=+2>
结果
</font></table><table width=* cellspacing=0 cellpadding=0><tr><td width=0 bgcolor=#EDEDF5>&nbsp;</td><td width=0 bgcolor=#FFFFFF>&nbsp;</td><td width=*><pre>生成日志保存在“file://e:\ZHONGJIE\VISION_STATION\StationSetup\Debug\BuildLog.htm”
StationSetup - 3 个错误,3 个警告

大神们,本人新手,多多指教!

[解决办法]
LNK2001:查一下GetThisMessageMap函数是否实现了
估计是IMPLEMENT宏没写

热点排行