Hi,
I have developped a wxWidget(2.6.2) app on Windows XP but I can only link with the shared version.
However I would like to use the static one, how can I do, everything I tried failed.
I have compiled wxWidget both as shared and static and when in linker and compiler option I put
Directories
$(WX_DIR)\lib\gcc_dll\msw
$(WX_DIR)\include
$(WX_DIR)\contrib\include
.\wxdockit\include
linker:
$(WX_DIR)\lib\gcc_dll
.\wxdockit\lib\gcc_dll
it works.
When I replace all the gcc_dll by gcc_lib it failed during linking while gcc_lib exists and holds my static libs.
I don't get it ...
Switching to target: default
Linking executable: SmartTester.exe
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text+0x99): undefined reference to `_imp__wxNotebookNameStr'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text+0xe1): undefined reference to `_imp__wxDefaultSize'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text+0xea): undefined reference to `_imp__wxDefaultPosition'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text+0x108): undefined reference to `_imp___ZN10wxNotebookC1EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text+0x1a9): undefined reference to `_imp___ZN16wxDockWindowBase9SetClientEP8wxWindowb'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text+0x297): undefined reference to `_imp__wxNotebookNameStr'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text+0x2df): undefined reference to `_imp__wxDefaultSize'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text+0x2e8): undefined reference to `_imp__wxDefaultPosition'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text+0x306): undefined reference to `_imp___ZN10wxNotebookC1EP8wxWindowiRK7wxPointRK6wxSizelRK8wxString'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text+0x3a7): undefined reference to `_imp___ZN16wxDockWindowBase9SetClientEP8wxWindowb'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text$_ZN12wxDockWindowD2Ev[wxDockWindow::~wxDockWindow()]+0xa): undefined reference to `_imp___ZTV12wxDockWindow'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text$_ZN16wxDockWindowBaseD2Ev[wxDockWindowBase::~wxDockWindowBase()]+0x39): undefined reference to `_imp___ZTV16wxDockWindowBase'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text$_ZN11wxMiniFrameD2Ev[wxMiniFrame::~wxMiniFrame()]+0xa): undefined reference to `_imp___ZTV11wxMiniFrame'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text$_ZN11wxMiniFrameD2Ev[wxMiniFrame::~wxMiniFrame()]+0x1a): undefined reference to `_imp___ZN7wxFrameD2Ev'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text$_ZN12wxMouseEventD1Ev[wxMouseEvent::~wxMouseEvent()]+0xa): undefined reference to `_imp___ZTV12wxMouseEvent'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text$_ZN7wxEventD2Ev[wxEvent::~wxEvent()]+0xa): undefined reference to `_imp___ZTV7wxEvent'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text$_ZN8wxObjectD2Ev[wxObject::~wxObject()]+0xa): undefined reference to `_imp___ZTV8wxObject'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text$_ZN8wxObjectD2Ev[wxObject::~wxObject()]+0x1a): undefined reference to `_imp___ZN8wxObject5UnRefEv'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text$_ZN12wxStringBaseC2EPKc[wxStringBase::wxStringBase(char const*)]+0x7): undefined reference to `_imp___ZN12wxStringBase4nposE'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text$_ZN12wxStringBaseC2EPKc[wxStringBase::wxStringBase(char const*)]+0x27): undefined reference to `_imp___ZN12wxStringBase8InitWithEPKcjj'
.objs\MsgDockBar.o:MsgDockBar.cpp:(.text$_ZN12wxDockWindowC2EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizeS4_j[wxDockWindow::wxDockWindow(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, wxString const&, unsigned int)]+0x4b): undefined reference to `_imp___ZTV12wxDockWindow'
...
Is there a mean under windows to see exactly with what parameters gcc is called ?