I follow the wiki tourials creating a programe by hand,
1) New a Win32 Project(Empty Project).
2) Just add a single source file, called helloworld.cpp.
3) Paste demo code into it.
4) Change project configuration
a) Add additional "Include" paths $(WXWIN)\)include\";"$(WXWIN)\lib\vc_lib\mswd";"$(WXWIN)\contrib\include"
b) Add additional "Libs" paths "$(WXWIN)\lib\vc_dll";"$(WXWIN)\lib\vc_lib";"$(WXWIN)\contrib\lib";"$(WXWIN)\lib"
c) Specify libs:
wxmsw28d_core.lib wxbase28d.lib wxtiffd.lib wxjpegd.lib wxpngd.lib wxzlibd.lib wxregexd.lib wxexpatd.lib winmm.lib comctl32.lib rpcrt4.lib wsock32.lib opengl32.lib glu32.lib oleacc.lib wxmsw28d_gl.lib
5) Build the project
And I got the following errors,could anyone help me please?
and I should mention that before this I used the "setup.h" which Audacity(an open audio sofware with wxWigest) supply to build the wxWigest libs instead of
the original one.
Code: Select all
------ Rebuild All started: Project: wxhelloworld, Configuration: Debug Win32 ------
Deleting intermediate and output files for project 'wxhelloworld', configuration 'Debug|Win32'
Compiling...
wxhelloworld.cpp
Linking...
wxhelloworld.obj : error LNK2001: unresolved external symbol "protected: static struct wxEventTable const wxFrame::sm_eventTable" ([email protected]@@[email protected]@B)
wxhelloworld.obj : error LNK2019: unresolved external symbol "protected: static class wxAppConsole * wxAppConsole::ms_appInstance" ([email protected]@@[email protected]) referenced in function "public: static class wxAppConsole * __cdecl wxAppConsole::GetInstance(void)" ([email protected]@@[email protected])
wxhelloworld.obj : error LNK2019: unresolved external symbol "public: static unsigned int const wxStringBase::npos" ([email protected]@@2IB) referenced in function "public: __thiscall wxStringBase::wxStringBase(char const *)" ([email protected]@[email protected]@Z)
wxhelloworld.obj : error LNK2019: unresolved external symbol "char const * const wxStatusLineNameStr" ([email protected]@3QBDB) referenced in function "public: __thiscall MyFrame::MyFrame(class wxString const &,class wxPoint const &,class wxSize const &)" ([email protected]@[email protected]@@[email protected]@[email protected]@@Z)
wxhelloworld.obj : error LNK2019: unresolved external symbol "char const * const wxEmptyString" ([email protected]@3PBDB) referenced in function "public: __thiscall MyFrame::MyFrame(class wxString const &,class wxPoint const &,class wxSize const &)" ([email protected]@[email protected]@@[email protected]@[email protected]@@Z)
wxhelloworld.obj : error LNK2019: unresolved external symbol "char const * const wxFrameNameStr" ([email protected]@3QBDB) referenced in function "public: __thiscall MyFrame::MyFrame(class wxString const &,class wxPoint const &,class wxSize const &)" ([email protected]@[email protected]@@[email protected]@[email protected]@@Z)
wxhelloworld.obj : error LNK2019: unresolved external symbol "int const wxEVT_NULL" ([email protected]@3HB) referenced in function "void __cdecl `dynamic initializer for 'private: static struct wxEventTableEntry const * const MyFrame::sm_eventTableEntries''(void)" ([email protected]@@[email protected]@[email protected]@YAXXZ)
wxhelloworld.obj : error LNK2019: unresolved external symbol "int const wxEVT_COMMAND_MENU_SELECTED" ([email protected]@3HB) referenced in function "void __cdecl `dynamic initializer for 'private: static struct wxEventTableEntry const * const MyFrame::sm_eventTableEntries''(void)" ([email protected]@@[email protected]@[email protected]@YAXXZ)
wxhelloworld.obj : error LNK2019: unresolved external symbol "protected: static class wxAppConsole * (__cdecl* wxAppConsole::ms_appInitFn)(void)" ([email protected]@@[email protected]) referenced in function "public: static void __cdecl wxAppConsole::SetInitializerFunction(class wxAppConsole * (__cdecl*)(void))" ([email protected]@@[email protected]@Z)
E:\cg opengl\wx\wxhelloworld\Debug\wxhelloworld.exe : fatal error LNK1120: 9 unresolved externals
Build log was saved at "file://e:\cg opengl\wx\wxhelloworld\Debug\BuildLog.htm"
wxhelloworld - 10 error(s), 0 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========