新建Duilib工程,加入示例代码时,出现error LNK2019: 无法解析的外部符号 "__declspec(dllimport)
2013-06-05 10:27
856 查看
原因:VS工程默认使用Unicode字符集,而下载的Duilib工程“使用多字节字符集”
解决方法:项目->属性->配置属性->常规->字符集,选择“使用多字节字符集”。
查阅网上资料,据说Unicode字符集使用两个字节对世界上几乎所有的语言进行编码(0x0000-0xFFFF),而如果使用的是中文的多字节环境,在英文操作系统上会是乱码的。在中文环境下还是用“多字节”方便点,而用Unicode却会出现乱码。
解决方法:项目->属性->配置属性->常规->字符集,选择“使用多字节字符集”。
查阅网上资料,据说Unicode字符集使用两个字节对世界上几乎所有的语言进行编码(0x0000-0xFFFF),而如果使用的是中文的多字节环境,在英文操作系统上会是乱码的。在中文环境下还是用“多字节”方便点,而用Unicode却会出现乱码。
相关文章推荐
- error LNK2019: 无法解析的外部符号 "__declspec(dllimport)
- 【转】error LNK2019: 无法解析的外部符号 "__declspec(dllimport)
- error LNK2019: 无法解析的外部符号 "__declspec(dllimport) long __stdcall RtlGetVersion(struct _OSVERSIONINFOW
- error LNK2019: 无法解析的外部符号 "__declspec(dllimport)
- osg 多个error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public:
- error: LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __cdecl QWidget::
- MFC DLL报错:error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall
- VS2010封装DLL时报错:error LNK2019: 无法解析的外部符号 "__declspec(dllimport)
- error LNK2019: 无法解析的外部符号 "__declspec(dllimport)
- 在C++控制台项目中使用C工程代码时的注意,避免出现error LNK2019: 无法解析的外部符号
- mainwindow.obj:-1: 错误:LNK2019: 无法解析的外部符号 "__declspec(dllimport) public:
- error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: struct std::_Wrap_alloc<class std::allocator
- VC++常规错误之一:error LNK2019: 无法解析的外部符号 "public: void __thiscall
- main.obj:-1: error: LNK2019: 无法解析的外部符号 "public: __thiscall CFindFileForm::CFindFileForm(class QWidge
- coco2dx + lua 新建工程 error LNK2019: 无法解析的外部符号
- 1>E1400Dlg.obj : error LNK2019: 无法解析的外部符号 __imp__Demo@12,该符号在函数 "protected: v
- [转]在vs2008上编译获取cpu代码出现的错误- error LNK2019: 无法解析的外部符号 _GetProcessMemoryInfo@12
- (在hello,MFC的创建过程中,新建项目时所配置的属性出现错误)error LNK2019: 无法解析的外部符号 _main,该符号在函数 ___tmainCRTStartup 中被引用 MSVCRTD.lib
- DirectX的error LNK2019: 无法解析的外部符号 _Direct3DCreate9@4,该符号在函数 "long __cdecl InitD3D(struct HWND__ *)"
- error LNK2019: 无法解析的外部符号 "