c++ - Link Error while creatiing wxSashLayoutWindow in wxwidgets -


i working on wxsashlayoutwindow not able execute ,some 1 please me out of this

these link errors getting:

1>myframe.obj : error lnk2019: unresolved external symbol "public: bool __thiscall   wxlayoutalgorithm::layoutframe(class wxframe *,class wxwindow *)" (?  layoutframe@wxlayoutalgorithm@@qae_npavwxframe@@pavwxwindow@@@z) referenced in function  "public: __thiscall myframe::myframe(class wxwindow *,int,class wxstring const &,class   wxpoint const &,class wxsize const &,long,class wxstring const &)" (??  0myframe@@qae@pavwxwindow@@habvwxstring@@abvwxpoint@@abvwxsize@@j1@z)   1>myframe.obj : error lnk2019: unresolved external symbol "public: void __thiscall  wxsashwindow::setsashvisible(enum wxsashedgeposition,bool)" (?  setsashvisible@wxsashwindow@@qaexw4wxsashedgeposition@@_n@z) referenced in function   "public: __thiscall myframe::myframe(class wxwindow *,int,class wxstring const &,class   wxpoint const &,class wxsize const &,long,class wxstring const &)" (??  0myframe@@qae@pavwxwindow@@habvwxstring@@abvwxpoint@@abvwxsize@@j1@z)   1>myframe.obj : error lnk2019: unresolved external symbol "public: bool __thiscall   wxsashlayoutwindow::create(class wxwindow *,int,class wxpoint const &,class wxsize const   &,long,class wxstring const &)" (?  create@wxsashlayoutwindow@@qae_npavwxwindow@@habvwxpoint@@abvwxsize@@jabvwxstring@@@z)   referenced in function "public: __thiscall myframe::myframe(class wxwindow *,int,class   wxstring const &,class wxpoint const &,class wxsize const &,long,class wxstring const &)"   (??0myframe@@qae@pavwxwindow@@habvwxstring@@abvwxpoint@@abvwxsize@@j1@z)   1>myframe.obj : error lnk2019: unresolved external symbol "public: virtual __thiscall   wxsashwindow::~wxsashwindow(void)" (??1wxsashwindow@@uae@xz) referenced in function   __unwindfunclet$??0wxsashlayoutwindow@@qae@xz$0   1>myframe.obj : error lnk2019: unresolved external symbol "private: void __thiscall   wxsashlayoutwindow::init(void)" (?init@wxsashlayoutwindow@@aaexxz) referenced in function   "public: __thiscall wxsashlayoutwindow::wxsashlayoutwindow(void)" (??  0wxsashlayoutwindow@@qae@xz)   1>myframe.obj : error lnk2001: unresolved external symbol "public: virtual class   wxclassinfo * __thiscall wxsashlayoutwindow::getclassinfo(void)const " (?  getclassinfo@wxsashlayoutwindow@@ubepavwxclassinfo@@xz)   1>myframe.obj : error lnk2001: unresolved external symbol "protected: virtual struct   wxeventtable const * __thiscall wxsashlayoutwindow::geteventtable(void)const " (?  geteventtable@wxsashlayoutwindow@@mbepbuwxeventtable@@xz)  1>myframe.obj : error lnk2001: unresolved external symbol "protected: virtual class   wxeventhashtable & __thiscall wxsashlayoutwindow::geteventhashtable(void)const " (?  geteventhashtable@wxsashlayoutwindow@@mbeaavwxeventhashtable@@xz)   1>myframe.obj : error lnk2019: unresolved external symbol "private: void __thiscall   wxsashwindow::init(void)" (?init@wxsashwindow@@aaexxz) referenced in function "public:   __thiscall wxsashwindow::wxsashwindow(void)" (??0wxsashwindow@@qae@xz)  1>myframe.obj : error lnk2001: unresolved external symbol "public: virtual class   wxclassinfo * __thiscall wxsashwindow::getclassinfo(void)const " (?  getclassinfo@wxsashwindow@@ubepavwxclassinfo@@xz)   1>myframe.obj : error lnk2001: unresolved external symbol "protected: virtual struct   wxeventtable const * __thiscall wxsashwindow::geteventtable(void)const " (?  geteventtable@wxsashwindow@@mbepbuwxeventtable@@xz)   1>myframe.obj : error lnk2001: unresolved external symbol "protected: virtual class   wxeventhashtable & __thiscall wxsashwindow::geteventhashtable(void)const " (?  geteventhashtable@wxsashwindow@@mbeaavwxeventhashtable@@xz)   1>myframe.obj : error lnk2001: unresolved external symbol "int const wxevt_sash_dragged" (?  wxevt_sash_dragged@@3hb) 

this code:

  //frame.h     #ifndef __main_frame__     #define __main_frame__     #include "wx/frame.h"     #include <wx/laywin.h>     //#include <wx/sashwin.h>     class myframe : public wxframe     {     public:         myframe();         myframe( wxwindow* parent, wxwindowid id, const wxstring& title, const wxpoint& pos = wxdefaultposition, const wxsize& size = wxdefaultsize, long style = wxdefault_frame_style, const wxstring& name = _t( "frame" ));         ~myframe();         void ondrag(wxsashevent &event);         void onsize(wxsizeevent& event);     private:         wxlayoutalgorithm _layout;         wxsashlayoutwindow *window;         wxsize siz;         declare_dynamic_class( myframe )         declare_event_table()     };      #endif     //frame.cpp     enum     {         id_btn_first = 100,         sashid     };     implement_dynamic_class( myframe, wxframe )     begin_event_table(myframe ,wxframe)     evt_sash_dragged(sashid ,myframe::ondrag)     evt_size(myframe::onsize)     end_event_table()     myframe::myframe()     {     }      myframe::~myframe()     {     }      myframe::myframe(wxwindow *parent, wxwindowid id, const wxstring &title, const wxpoint &pos, const wxsize &size , long style , const wxstring &name )     :wxframe( parent, id, title, pos, size, style, name )     {          siz = wxgetdisplaysize();         window  = new wxsashlayoutwindow();         window->create(this ,sashid );         window->setdefaultsize(wxsize(200 ,siz.getheight()));         window->setorientation(wxlayout_vertical);         window->setalignment(wxlayout_left);         window->setbackgroundcolour(this->getbackgroundcolour());         window->setsashvisible(wxsash_right, true);         wxpanel *panel = new wxpanel(this);          mwtreectrl *tree = new mwtreectrl(window);           _layout.layoutframe(this ,panel);      }     void myframe::ondrag(wxsashevent &event)     {         window->setdefaultsize(wxsize(event.getdragrect().width, siz.getheight()));         _layout.layoutframe(this ,panel);      }     void myframe::onsize(wxsizeevent& event)     {         _layout.layoutframe(this ,panel);     } 

are linking advanced library?

http://docs.wxwidgets.org/trunk/page_libs.html#page_libs_wxadv


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -