unresolved external symbol ..........const gloox::GLOOX_VERSION
作者:shj 发布于:2014-2-11 9:41
error LNK2001: 无法解析的外部符号 "class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const
gloox::EmptyString"
(?EmptyString@gloox@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@B)
error LNK2001: 无法解析的外部符号 "class std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> > const gloox::GLOOX_VERSION" (?GLOOX_VERSION@gloox@@3V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@B)
解决方案:
在C++ console的Project configuration properties\ c/c++ \Preprocesser\Preprcessor Definitions中加入GLOOX_IMPORTS 或 DLL_IMPORT 使extern 变量声明为 __declspec( dllimport );这样exe程序才认为这是个要从外部导入的变量。
« libstrophe编译
|
ocr思考及测试»
评论:


2014-07-28 19:22