error LNK2019: 无法解析的外部符号 "__declspec(dllimport) const HXmlParse::
2012-08-30 00:04
465 查看
今天本来想用cocos2dx写一个读取xml里面东西的文件,但是遇到了上面的问题,想了一个多小时,还没解决,最终在一个朋友的帮助下,把这个问题搞定了!下面把解决方法写下来,供大家参考。
我的.h部分的代码是这样写的:
class CC_DLL HXmlParse :public CCObject, public CCSAXDelegator
{
这个问题的出现就是因为我多了个CC_DLL这个东西。
如果出现上面的提示,有可能是因为头文件没有包含,或者就是多了CC_DLL这个东西
去掉,问题解决
我的.h部分的代码是这样写的:
class CC_DLL HXmlParse :public CCObject, public CCSAXDelegator
{
这个问题的出现就是因为我多了个CC_DLL这个东西。
如果出现上面的提示,有可能是因为头文件没有包含,或者就是多了CC_DLL这个东西
去掉,问题解决
相关文章推荐
- error LNK2019: 无法解析的外部符号 "__declspec(dllimport)
- 字符集导致的 error LNK2019: 无法解析的外部符号 "__declspec(dllimport)
- error LNK2019: 无法解析的外部符号 "__declspec(dllimport) int add(int,int)" (__imp_?add@@YGHHH@Z)
- error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static void __cdecl xercesc_2_8::XMLPlatfor
- error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: static void __cdecl xercesc_2_8::XMLPlatfor
- error LNK2019: 无法解析的外部符号 "__declspec(dllimport) long __stdcall RtlGetVersion(struct _OSVERSIONINFOW
- 【转】error LNK2019: 无法解析的外部符号 "__declspec(dllimport)
- error LNK2019: 无法解析的外部符号 "__declspec(dllimport) long __stdcall RtlGetVersion(struct _OSVERSIONINFOW
- MFC DLL报错:error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall
- error LNK2001: 无法解析的外部符号 "__declspec(dllimport)
- 新建Duilib工程,加入示例代码时,出现error LNK2019: 无法解析的外部符号 "__declspec(dllimport)
- error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall DuiLib::CDuiString::CDuiStr
- error LNK2019: 无法解析的外部符号 "__declspec(dllimport)
- error LNK2001: 无法解析的外部符号 "__declspec(dllimport) void __cdecl google::InstallFailureSignalHandle
- mainwindow.obj:-1: 错误:LNK2019: 无法解析的外部符号 "__declspec(dllimport) public:
- DLL:无法解析的外部符号 "__declspec(dllimport)
- error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall DuiLib::WindowImplBase::WindowImp
- error LNK2001: 无法解析的外部符号 "__declspec(dllimport) protected: __thiscall std::_Container_base_aux_allo
- osg 多个error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public:
- error LNK2019: 无法解析的外部符号 "__declspec(dllimport)