Thread: wxWidgets link problem

  1. #1
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709

    wxWidgets link problem

    I've just followed this tutorial word for word: http://www.codeproject.com/useritems/wxWidgets.asp

    But I'm still getting these link errors:

    Code:
    ------ Build started: Project: wxwid_tut, Configuration: Debug Win32 ------
    
    Compiling...
    hworld.cpp
    Linking...
    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@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@wxWindow@@QAE_NHHI@Z)
    wxmsw26d_core.lib(statbr95.obj) : error LNK2019: unresolved external symbol __imp__CreateStatusWindowA@16 referenced in function "public: bool __thiscall wxStatusBar::Create(class wxWindow *,int,long,class wxString const &)" (?Create@wxStatusBar@@QAE_NPAVwxWindow@@HJABVwxString@@@Z)
    wxmsw26d_core.lib(spinbutt.obj) : error LNK2019: unresolved external symbol __imp__CreateUpDownControl@48 referenced in function "public: bool __thiscall wxSpinButton::Create(class wxWindow *,int,class wxPoint const &,class wxSize const &,long,class wxString const &)" (?Create@wxSpinButton@@QAE_NPAVwxWindow@@HABVwxPoint@@ABVwxSize@@JABVwxString@@@Z)
    wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Create@20 referenced in function "public: bool __thiscall wxImageList::Create(int,int,bool,int)" (?Create@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@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@wxImageList@@QBEHXZ)
    wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetIconSize@12 referenced in function "public: bool __thiscall wxImageList::GetSize(int,int &,int &)const " (?GetSize@wxImageList@@QBE_NHAAH0@Z)
    wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Add@12 referenced in function "public: int __thiscall wxImageList::Add(class wxBitmap const &,class wxBitmap const &)" (?Add@wxImageList@@QAEHABVwxBitmap@@0@Z)
    wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_AddMasked@12 referenced in function "public: int __thiscall wxImageList::Add(class wxBitmap const &,class wxColour const &)" (?Add@wxImageList@@QAEHABVwxBitmap@@ABVwxColour@@@Z)
    wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_ReplaceIcon@12 referenced in function "public: int __thiscall wxImageList::Add(class wxIcon const &)" (?Add@wxImageList@@QAEHABVwxIcon@@@Z)
    wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Replace@16 referenced in function "public: bool __thiscall wxImageList::Replace(int,class wxBitmap const &,class wxBitmap const &)" (?Replace@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@wxImageList@@QAE_NH@Z)
    wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_Draw@24 referenced in function "public: bool __thiscall wxImageList::Draw(int,class wxDC &,int,int,int,bool)" (?Draw@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@wxImageList@@QAE_NHAAVwxDC@@HHH_N@Z)
    wxmsw26d_core.lib(imaglist.obj) : error LNK2019: unresolved external symbol __imp__ImageList_GetIcon@12 referenced in function "public: class wxIcon __thiscall wxImageList::GetIcon(int)const " (?GetIcon@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@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@XZ)
    wxmsw26d_core.lib(uuid.obj) : error LNK2019: unresolved external symbol __imp__UuidCreate@4 referenced in function "public: void __thiscall Uuid::Create(void)" (?Create@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@Uuid@@QAE_NPBD@Z)
    Debug/wxwid_tut.exe : fatal error LNK1120: 20 unresolved externals
    
    Build Time 0:04
    Build log was saved at "file://c:\Documents and Settings\lee\Desktop\wxwid_tut\Debug\BuildLog.htm"
    wxwid_tut - 21 error(s), 0 warning(s)
    
    
    ---------------------- Done ----------------------
    
        Build: 0 succeeded, 1 failed, 0 skipped
    There's not much I can do without someone's help - wxWidgets is completely new to me and I've got no idea what I'm looking for in the way of libraries that might be missing.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  2. #2
    Registered User OnionKnight's Avatar
    Join Date
    Jan 2005
    Posts
    555
    Did you link the libraries when compiling?

  3. #3
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    Yeppers - followed that tutorial down to a T.
    I'm putting it off for a while, while I learn MFC.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Link List problem
    By Darkinyuasha1 in forum C Programming
    Replies: 2
    Last Post: 05-08-2009, 07:47 PM
  2. Link Lists. I need Some Problem From u Guys to do!
    By Matus in forum C Programming
    Replies: 17
    Last Post: 11-18-2008, 03:06 AM
  3. Link problem
    By yochaaa in forum C Programming
    Replies: 3
    Last Post: 10-06-2008, 06:47 AM
  4. .lib vs .h vs .dll
    By Shadow12345 in forum C++ Programming
    Replies: 13
    Last Post: 01-01-2003, 05:29 AM
  5. Link list and node problem
    By tom_mk in forum C++ Programming
    Replies: 0
    Last Post: 02-21-2002, 05:18 PM