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程序才认为这是个要从外部导入的变量。

评论:

邓山同作
2014-07-28 19:22
今天xx联盟发钱了吗
周板又自
2014-06-26 19:48
相比他连说拜拜的 想法都没了 哈哈
任物纠旭
2014-06-18 11:18
此贴有意思~?
张奸朋月
2014-06-18 04:13
顶!!!!!!!!!!
闫坐布姐
2014-06-14 23:39
真是令人钦佩
邵百丞帖
2014-06-14 13:01
啊...刚回来啊...
白知卯沱
2014-05-12 15:36
呵呵 我可不敢~~~~
黄柚社奴
2014-05-07 04:09
都是水何必装纯,都是狼何必装羊??
张企枝姚
2014-05-04 04:25
晕。。。。怎么没早看到呢。。。。。。。。。
李佩州便
2014-05-01 18:00
看到了~~
梁口壬十
2014-04-28 11:53
我在顶贴~!~
陈佘束耐
2014-04-27 21:53
要不我崇拜你?行吗??
沈日企帛
2014-04-26 03:39
说的不错
闫完机早
2014-04-19 19:21
能告诉我丫挺什么意思吗?赐教
马布各俞
2014-04-19 19:14
扯淡啊,感觉你在开玩笑啊
Powered by emlog 蜀ICP备14001363号