Prev: Plotting problems
Next: wxglade
From: darrylwright@gmail.com on 9 Sep 2005 08:54 Hi there, I am trying to go through one of the wxWidgets tutorials and have a very simple Hello World app I am trying to get running. It now compiles fine and I've got most of he Visual C++ strangeness worked through but I still can't seem to lose the linker errors. It looks like I am either missing libs or I've got too many. Can anyone point me to a resource that tells me what libs are required for certain modules? Or maybe tell me what I am missing? Thanks, Darryl wxmsw26d_core.lib(app.obj) : error LNK2019: unresolved external symbol __imp__InitCommonControls@0 referenced in function "public: virtual bool __thiscall wxApp::Initialize(int &,char * *)" (?Initialize(a)wxApp@@UAE_NAAHPAPAD@Z) wxmsw26d_core.lib(window.obj) : error LNK2019: unresolved external symbol __imp___TrackMouseEvent@4 referenced in function "public: bool __thiscall wxWindow::HandleMouseMove(int,int,unsigned int)" (?HandleMouseMove(a)wxWindow@@QAE_NHHI@Z) wxmsw26d_core.lib(statbr95.obj) : error LNK2019: unresolved external symbol __imp__CreateStatusWindowA(a)16 referenced in function "public: bool __thiscall wxStatusBar::Create(class wxWindow *,int,long,class wxString const &)" (?Create(a)wxStatusBar@@QAE_NPAVwxWindow@@HJABVwxString@@@Z) wxmsw26d_core.lib(spinbutt.obj) : error LNK2019: unresolved external symbol __imp__CreateUpDownControl(a)48 referenced in function "public: bool __thiscall wxSpinButton::Create(class wxWindow *,int,class wxPoint const &,class wxSize const &,long,class wxString const &)" (?Create(a)wxSpinButton@@QAE_NPAVwxWindow@@HABVwxPoint@@ABVwxSize@@JABVwxString@@@Z) wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Create(a)20 referenced in function "public: bool __thiscall wxImageList::Create(int,int,bool,int)" (?Create(a)wxImageList@@QAE_NHH_NH@Z) wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Destroy@4 referenced in function "public: virtual __thiscall wxImageList::~wxImageList(void)" (??1wxImageList@@UAE(a)XZ) wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetImageCount@4 referenced in function "public: int __thiscall wxImageList::GetImageCount(void)const " (?GetImageCount(a)wxImageList@@QBEHXZ) wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetIconSize(a)12 referenced in function "public: bool __thiscall wxImageList::GetSize(int,int &,int &)const " (?GetSize(a)wxImageList@@QBE_NHAAH0@Z) wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Add(a)12 referenced in function "public: int __thiscall wxImageList::Add(class wxBitmap const &,class wxBitmap const &)" (?Add(a)wxImageList@@QAEHABVwxBitmap@@0@Z) wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_AddMasked(a)12 referenced in function "public: int __thiscall wxImageList::Add(class wxBitmap const &,class wxColour const &)" (?Add(a)wxImageList@@QAEHABVwxBitmap@@ABVwxColour@@@Z) wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_ReplaceIcon(a)12 referenced in function "public: int __thiscall wxImageList::Add(class wxIcon const &)" (?Add(a)wxImageList@@QAEHABVwxIcon@@@Z) wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Replace(a)16 referenced in function "public: bool __thiscall wxImageList::Replace(int,class wxBitmap const &,class wxBitmap const &)" (?Replace(a)wxImageList@@QAE_NHABVwxBitmap@@0@Z) wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Remove@8 referenced in function "public: bool __thiscall wxImageList::Remove(int)" (?Remove(a)wxImageList@@QAE_NH@Z) wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Draw(a)24 referenced in function "public: bool __thiscall wxImageList::Draw(int,class wxDC &,int,int,int,bool)" (?Draw(a)wxImageList@@QAE_NHAAVwxDC@@HHH_N@Z) wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_SetBkColor@8 referenced in function "public: bool __thiscall wxImageList::Draw(int,class wxDC &,int,int,int,bool)" (?Draw(a)wxImageList@@QAE_NHAAVwxDC@@HHH_N@Z) wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetIcon(a)12 referenced in function "public: class wxIcon __thiscall wxImageList::GetIcon(int)const " (?GetIcon(a)wxImageList@@QBE?AVwxIcon@@H@Z) wxmsw26d_core.lib(uuid.obj) : error LNK2019: unresolved external symbol __imp__UuidToStringA@8 referenced in function "public: __thiscall Uuid::Uuid(class Uuid const &)" (??0Uuid@@QAE(a)ABV0@@Z) wxmsw26d_core.lib(uuid.obj) : error LNK2019: unresolved external symbol __imp__RpcStringFreeA@4 referenced in function "public: __thiscall Uuid::~Uuid(void)" (??1Uuid@@QAE(a)XZ) wxmsw26d_core.lib(uuid.obj) : error LNK2019: unresolved external symbol __imp__UuidCreate@4 referenced in function "public: void __thiscall Uuid::Create(void)" (?Create(a)Uuid@@QAEXXZ) wxmsw26d_core.lib(uuid.obj) : error LNK2019: unresolved external symbol __imp__UuidFromStringA@8 referenced in function "public: bool __thiscall Uuid::Set(char const *)" (?Set(a)Uuid@@QAE_NPBD@Z) Debug/JackPod.exe : fatal error LNK1120: 20 unresolved externals
From: darrylwright@gmail.com on 9 Sep 2005 08:56 Note: I am currently linking in the following (which was nothing more than guesswork). wxbase26d.lib wxbase26d_xml.lib wxmsw26d_core.lib wxmsw26d_adv.lib
From: "k. holwerda" on 9 Sep 2005 11:10 This is what i link: comctl32.lib wsock32.lib rpcrt4.lib wxbase26d.lib wxbase26d_net.lib wxbase26d_xml.lib wxmsw26d_adv.lib wxmsw26d_core.lib wxmsw26d_html.lib wxmsw26d_stc.lib wxmsw26d_xrc.lib wxregexd.lib wxpngd.lib wxtiffd.lib wxjpegd.lib wxzlibd.lib antigrain.lib wxexpatd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib Defines: -DWIN32 -D__WXMSW__ -D_DEBUG_ -D__WXDEBUG__ In Vc6 that is. But honestly better use cmake or bakefile, i think, Klaas darrylwright(a)gmail.com wrote: >Note: I am currently linking in the following (which was nothing more >than guesswork). > >wxbase26d.lib >wxbase26d_xml.lib >wxmsw26d_core.lib >wxmsw26d_adv.lib > > > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org >For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org > > > -- Unclassified --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org
From: todma on 9 Sep 2005 17:30 the "hello world" in this case is the "minimal" sample, in the samples subdirectory. I'm figuring out that it refers and builds wxWidgets classes that it needs as a bonus in the workspace, (it contains 3 projects, two of which build wxWidgets which you might need to do) the third project is 'minimal' which is really hello world. if I build these 3 projects it works and you can get the info you need from this project. whew thank god. Todd.
From: JohnD on 9 Sep 2005 20:32
darrylwright(a)gmail.com wrote: >Note: I am currently linking in the following (which was nothing more >than guesswork). > >wxbase26d.lib >wxbase26d_xml.lib >wxmsw26d_core.lib >wxmsw26d_adv.lib > > Darryl, Here's the libraries I include through Project Properties->Linker->Input->Additional Dependencies in Visual Studio.NET 2003: wxbase26d.lib wxmsw26d_adv.lib wxbase26d_net.lib wxmsw26d_gl.lib wxmsw26d_dbgrid.lib wxmsw26d_core.lib wxexpatd.lib wxbase26d_xml.lib wxpngd.lib wxzlibd.lib wxjpegd.lib wxtiffd.lib wxregexd.lib wxmsw26d_html.lib wsock32.lib rpcrt4.lib comctl32.lib HTH, John --------------------------------------------------------------------- To unsubscribe, e-mail: wx-users-unsubscribe(a)lists.wxwidgets.org For additional commands, e-mail: wx-users-help(a)lists.wxwidgets.org |