炫彩界面库论坛

 找回密码
 加入我们

QQ登录

只需一步,快速开始

查看: 2926|回复: 3

VS2010编译v1.5.2出错

[复制链接]

该用户从未签到

发表于 2013-4-17 11:24:53 | 显示全部楼层 |阅读模式
请教大家一个问题:我编译C++代码风格模板例子,以下语句可以执行
#pragma comment(lib, "XCGUId.lib")
但换成
#pragma comment(lib, "XCGUI.lib")

就会报错,错误如下:

错误        1        error LNK2001: 无法解析的外部符号 "void __stdcall XEle_RegisterEventEx(struct HELE__ *,int,int (__stdcall*)(struct eventOrMsg_ *,enum xcgui_fun_type),void *)" (?XEle_RegisterEventEx@@YGXPAUHELE__@@HP6GHPAUeventOrMsg_@@W4xcgui_fun_type@@@ZPAX@Z)        d:\my documents\visual studio 2010\Projects\MyXC\MyXC\MyXC.obj        MyXC
不知道这个怎么解决?





该用户从未签到

发表于 2013-6-24 21:56:41 | 显示全部楼层
我也出现这个错误
Vmain.obj : error LNK2019: 无法解析的外部符号 "int __stdcall XInitXCGUI(wchar_t *)" (?XInitXCGUI@@YGHPA_W@Z),该符号在函数 _wWinMain@16 中被引用
1>Vmain.obj : error LNK2019: 无法解析的外部符号 "struct HELE__ * __stdcall XBtn_Create(int,int,int,int,wchar_t *,void *)" (?XBtn_Create@@YGPAUHELE__@@HHHHPA_WPAX@Z),该符号在函数 "public: int __thiscall CMyWnd::Create(void)" (?Create@CMyWnd@@QAEHXZ) 中被引用
1>Vmain.obj : error LNK2019: 无法解析的外部符号 "struct HWINDOW__ * __stdcall XWnd_CreateWindow(int,int,int,int,wchar_t *,struct HWND__ *,int)" (?XWnd_CreateWindow@@YGPAUHWINDOW__@@HHHHPA_WPAUHWND__@@H@Z),该符号在函数 "public: int __thiscall CMyWnd::Create(void)" (?Create@CMyWnd@@QAEHXZ) 中被引用
1>Vmain.obj : error LNK2019: 无法解析的外部符号 "int __stdcall XMessageBox(void *,wchar_t *,wchar_t *,int)" (?XMessageBox@@YGHPAXPA_W1H@Z),该符号在函数 "public: int __thiscall CMyWnd::OnEventBtnClick(struct HELE__ *,struct HELE__ *)" (?OnEventBtnClick@CMyWnd@@QAEHPAUHELE__@@0@Z) 中被引用
1>G:\VS2010PRO\Vremote\Debug\Vremote.exe : fatal error LNK1120: 4 个无法解析的外部命令

该用户从未签到

发表于 2013-6-24 22:15:20 | 显示全部楼层
搞定
解决方案:

在项目属性--C/C++--语言中,将wchar_t视为内置 改为 否。错误排除。

该用户从未签到

发表于 2013-11-9 14:06:28 | 显示全部楼层
谢谢,完美解决
您需要登录后才可以回帖 登录 | 加入我们

本版积分规则

QQ|Archiver|手机版|小黑屋|炫彩界面库 ( 鄂ICP备2023014763号-1 )

GMT+8, 2024-5-5 16:47 , Processed in 0.069140 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表