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

编译疏失求大神指教

2013-08-14 
编译出错求大神指教rror LNK2019: 无法解析的外部符号 public: virtual __thiscall VsoaServiceImplServi

编译出错求大神指教
rror LNK2019: 无法解析的外部符号 "public: virtual __thiscall VsoaServiceImplServiceSoapBindingProxy::~VsoaServiceImplServiceSoapBindingProxy(void)" (??1VsoaServiceImplServiceSoapBindingProxy@@UAE@XZ),该符号在函数 "int __cdecl OB_GetDepTreeEntityList(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::list<class DepTreeEntity *,class std::allocator<class DepTreeEntity *> > *)" (?OB_GetDepTreeEntityList@@YAHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0PAV?$list@PAVDepTreeEntity@@V?$allocator@PAVDepTreeEntity@@@std@@@2@@Z) 中被引用
1>sdkClient.obj : 

error LNK2019: 无法解析的外部符号 "public: __thiscall VsoaServiceImplServiceSoapBindingProxy::VsoaServiceImplServiceSoapBindingProxy(void)" (??0VsoaServiceImplServiceSoapBindingProxy@@QAE@XZ),该符号在函数 "int __cdecl OB_GetDepTreeEntityList(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,class std::list<class DepTreeEntity *,class std::allocator<class DepTreeEntity *> > *)" (?OB_GetDepTreeEntityList@@YAHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@0PAV?$list@PAVDepTreeEntity@@V?$allocator@PAVDepTreeEntity@@@std@@@2@@Z) 中被引用
1>D:\VS2010项目位置\OBSERVICE\Debug\OBSERVICE.exe : fatal error LNK1120: 2 个无法解析的外部命令
[解决办法]
所需库没有链接。
[解决办法]
一般出现lnk错误都是库文件没添加造成的。
项目--》属性--》配置属性--》链接器-》输入--》附加依赖项
在其中加入所需库文件,同时在“链接器--》常规--》附加库目录”中填入相应库名。
这样应该就可以
 
 
这样还不行的话,
那源文件是.c改成.cpp文件。如果是.cpp文件改成.c文件
试试

热点排行