首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > C++ >

依赖wxWidgets程序编译连接的一个有关问题

2012-04-07 
依赖wxWidgets程序编译连接的一个问题我的代码是用wxWidgets写的,以前是用命令行bakefile编译我现在弄成VC

依赖wxWidgets程序编译连接的一个问题
我的代码是用wxWidgets写的,以前是用命令行bakefile编译
我现在弄成VC IDE编译后出现下面的连接错误,帮我看下是大概哪里的
问题:
1>Linking...
1>wxmsw28ud_core.lib(imaglist.obj) : error LNK2005: "public: virtual __thiscall wxImageList::~wxImageList(void)" (??1wxImageList@@UAE@XZ) already defined in classtreectrl.obj
1>classtreectrl.obj : error LNK2019: unresolved external symbol "public: int __thiscall wxGenericImageList::Add(class wxBitmap const &)" (?Add@wxGenericImageList@@QAEHABVwxBitmap@@@Z) referenced in function "public: __thiscall ClassTreeCtrl::ClassTreeCtrl(class wxWindow *,int,class wxPoint const &,class wxSize const &,long)" (??0ClassTreeCtrl@@QAE@PAVwxWindow@@HABVwxPoint@@ABVwxSize@@J@Z)
1>img.obj : error LNK2001: unresolved external symbol "public: int __thiscall wxGenericImageList::Add(class wxBitmap const &)" (?Add@wxGenericImageList@@QAEHABVwxBitmap@@@Z)
1>classtreectrl.obj : error LNK2019: unresolved external symbol "public: __thiscall wxGenericImageList::wxGenericImageList(int,int,bool,int)" (??0wxGenericImageList@@QAE@HH_NH@Z) referenced in function "public: __thiscall wxImageList::wxImageList(int,int,bool,int)" (??0wxImageList@@QAE@HH_NH@Z)
1>img.obj : error LNK2001: unresolved external symbol "public: __thiscall wxGenericImageList::wxGenericImageList(int,int,bool,int)" (??0wxGenericImageList@@QAE@HH_NH@Z)
1>classtreectrl.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall wxGenericImageList::GetImageCount(void)const " (?GetImageCount@wxGenericImageList@@UBEHXZ)
1>img.obj : error LNK2001: unresolved external symbol "public: virtual int __thiscall wxGenericImageList::GetImageCount(void)const " (?GetImageCount@wxGenericImageList@@UBEHXZ)
1>classtreectrl.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxGenericImageList::GetSize(int,int &,int &)const " (?GetSize@wxGenericImageList@@UBE_NHAAH0@Z)
1>img.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxGenericImageList::GetSize(int,int &,int &)const " (?GetSize@wxGenericImageList@@UBE_NHAAH0@Z)
1>classtreectrl.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxGenericImageList::Draw(int,class wxDC &,int,int,int,bool)" (?Draw@wxGenericImageList@@UAE_NHAAVwxDC@@HHH_N@Z)
1>img.obj : error LNK2001: unresolved external symbol "public: virtual bool __thiscall wxGenericImageList::Draw(int,class wxDC &,int,int,int,bool)" (?Draw@wxGenericImageList@@UAE_NHAAVwxDC@@HHH_N@Z)
1>classtreectrl.obj : error LNK2019: unresolved external symbol "public: virtual __thiscall wxGenericImageList::~wxGenericImageList(void)" (??1wxGenericImageList@@UAE@XZ) referenced in function "public: virtual __thiscall wxImageList::~wxImageList(void)" (??1wxImageList@@UAE@XZ)
1>img.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall wxGenericImageList::~wxGenericImageList(void)" (??1wxGenericImageList@@UAE@XZ)

[解决办法]
有些库没有link进VC工程

热点排行