Finally I found one of my problem with static libs.
It was just the link order.
Here is the right order(the one used by wxWIdgets samples) :
wxmsw26_xrc
wxmsw26_html
wxmsw26_adv
wxmsw26_core
wxbase26_xml
wxbase26
wxtiff
wxjpeg
wxpng
wxzlib
wxregex
wxexpat
wxbase26_net
wxmsw26_media
winspool
winmm
shell32
comctl32
ctl3d32
odbc32
advapi32
wsock32
opengl32
glu32
ole32
oleaut32
However for dynamic libs still have this :
Switching to target: Release Dll
mingw32-g++.exe -pipe -mthreads -frtti -fexceptions -D__GNUWIN32__ -D__WXMSW__ -O2 -enable-auto-import -DWXMAKINGDLL_IFM -DWXUSINGDLL -ID:\Logiciels\wxWidgets-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\contrib\include -I.\include -I.\src\ifm\xpm -ID:\Logiciels\wxWidgets-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\lib\gcc_dll\msw -ID:\Logiciels\wxWidgets-2.6.2\contrib\include -I.\include -I.\src\ifm\xpm -ID:\Logiciels\CodeBlocks\include -c src\ifm\defplugin.cpp -o .objs\src\ifm\defplugin.o
mingw32-g++.exe -pipe -mthreads -frtti -fexceptions -D__GNUWIN32__ -D__WXMSW__ -O2 -enable-auto-import -DWXMAKINGDLL_IFM -DWXUSINGDLL -ID:\Logiciels\wxWidgets-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\contrib\include -I.\include -I.\src\ifm\xpm -ID:\Logiciels\wxWidgets-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\lib\gcc_dll\msw -ID:\Logiciels\wxWidgets-2.6.2\contrib\include -I.\include -I.\src\ifm\xpm -ID:\Logiciels\CodeBlocks\include -c src\ifm\dragndrop.cpp -o .objs\src\ifm\dragndrop.o
mingw32-g++.exe -pipe -mthreads -frtti -fexceptions -D__GNUWIN32__ -D__WXMSW__ -O2 -enable-auto-import -DWXMAKINGDLL_IFM -DWXUSINGDLL -ID:\Logiciels\wxWidgets-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\contrib\include -I.\include -I.\src\ifm\xpm -ID:\Logiciels\wxWidgets-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\lib\gcc_dll\msw -ID:\Logiciels\wxWidgets-2.6.2\contrib\include -I.\include -I.\src\ifm\xpm -ID:\Logiciels\CodeBlocks\include -c src\ifm\events.cpp -o .objs\src\ifm\events.o
mingw32-g++.exe -pipe -mthreads -frtti -fexceptions -D__GNUWIN32__ -D__WXMSW__ -O2 -enable-auto-import -DWXMAKINGDLL_IFM -DWXUSINGDLL -ID:\Logiciels\wxWidgets-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\contrib\include -I.\include -I.\src\ifm\xpm -ID:\Logiciels\wxWidgets-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\lib\gcc_dll\msw -ID:\Logiciels\wxWidgets-2.6.2\contrib\include -I.\include -I.\src\ifm\xpm -ID:\Logiciels\CodeBlocks\include -c src\ifm\manager.cpp -o .objs\src\ifm\manager.o
src\ifm\manager.cpp:34: warning: function 'void wxRectArray::DoEmpty()' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp:34: warning: 'void wxRectArray::DoEmpty()' defined locally after being referenced with dllimport linkage
src\ifm\manager.cpp:34: warning: function 'void wxRectArray::Add(const _wxObjArraywxRectArray&, size_t)' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp:34: warning: 'void wxRectArray::Add(const _wxObjArraywxRectArray&, size_t)' defined locally after being referenced with dllimport linkage
src\ifm\manager.cpp:35: warning: function 'void wxSizeArray::DoEmpty()' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp:35: warning: 'void wxSizeArray::DoEmpty()' defined locally after being referenced with dllimport linkage
src\ifm\manager.cpp:35: warning: function 'void wxSizeArray::Add(const _wxObjArraywxSizeArray&, size_t)' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp:35: warning: 'void wxSizeArray::Add(const _wxObjArraywxSizeArray&, size_t)' defined locally after being referenced with dllimport linkage
src\ifm\manager.cpp: In destructor `wxRectArray::~wxRectArray()':
src\ifm\manager.cpp:34: warning: function 'wxRectArray::~wxRectArray()' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In destructor `wxRectArray::~wxRectArray()':
src\ifm\manager.cpp:34: warning: function 'wxRectArray::~wxRectArray()' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In member function `void wxRectArray::DoCopy(const wxRectArray&)':
src\ifm\manager.cpp:34: warning: function 'void wxRectArray::DoCopy(const wxRectArray&)' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In member function `wxRectArray& wxRectArray::operator=(const wxRectArray&)':
src\ifm\manager.cpp:34: warning: function 'wxRectArray& wxRectArray::operator=(const wxRectArray&)' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In copy constructor `wxRectArray::wxRectArray(const wxRectArray&)':
src\ifm\manager.cpp:34: warning: function 'wxRectArray::wxRectArray(const wxRectArray&)' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In copy constructor `wxRectArray::wxRectArray(const wxRectArray&)':
src\ifm\manager.cpp:34: warning: function 'wxRectArray::wxRectArray(const wxRectArray&)' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In member function `void wxRectArray::RemoveAt(size_t, size_t)':
src\ifm\manager.cpp:34: warning: function 'void wxRectArray::RemoveAt(size_t, size_t)' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In member function `void wxRectArray::Insert(const _wxObjArraywxRectArray&, size_t, size_t)':
src\ifm\manager.cpp:34: warning: function 'void wxRectArray::Insert(const _wxObjArraywxRectArray&, size_t, size_t)' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In member function `int wxRectArray::Index(const _wxObjArraywxRectArray&, bool) const':
src\ifm\manager.cpp:34: warning: function 'int wxRectArray::Index(const _wxObjArraywxRectArray&, bool) const' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In destructor `wxSizeArray::~wxSizeArray()':
src\ifm\manager.cpp:35: warning: function 'wxSizeArray::~wxSizeArray()' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In destructor `wxSizeArray::~wxSizeArray()':
src\ifm\manager.cpp:35: warning: function 'wxSizeArray::~wxSizeArray()' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In member function `void wxSizeArray::DoCopy(const wxSizeArray&)':
src\ifm\manager.cpp:35: warning: function 'void wxSizeArray::DoCopy(const wxSizeArray&)' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In member function `wxSizeArray& wxSizeArray::operator=(const wxSizeArray&)':
src\ifm\manager.cpp:35: warning: function 'wxSizeArray& wxSizeArray::operator=(const wxSizeArray&)' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In copy constructor `wxSizeArray::wxSizeArray(const wxSizeArray&)':
src\ifm\manager.cpp:35: warning: function 'wxSizeArray::wxSizeArray(const wxSizeArray&)' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In copy constructor `wxSizeArray::wxSizeArray(const wxSizeArray&)':
src\ifm\manager.cpp:35: warning: function 'wxSizeArray::wxSizeArray(const wxSizeArray&)' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In member function `void wxSizeArray::RemoveAt(size_t, size_t)':
src\ifm\manager.cpp:35: warning: function 'void wxSizeArray::RemoveAt(size_t, size_t)' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In member function `void wxSizeArray::Insert(const _wxObjArraywxSizeArray&, size_t, size_t)':
src\ifm\manager.cpp:35: warning: function 'void wxSizeArray::Insert(const _wxObjArraywxSizeArray&, size_t, size_t)' is defined after prior declaration as dllimport: attribute ignored
src\ifm\manager.cpp: In member function `int wxSizeArray::Index(const _wxObjArraywxSizeArray&, bool) const':
src\ifm\manager.cpp:35: warning: function 'int wxSizeArray::Index(const _wxObjArraywxSizeArray&, bool) const' is defined after prior declaration as dllimport: attribute ignored
mingw32-g++.exe -pipe -mthreads -frtti -fexceptions -D__GNUWIN32__ -D__WXMSW__ -O2 -enable-auto-import -DWXMAKINGDLL_IFM -DWXUSINGDLL -ID:\Logiciels\wxWidgets-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\contrib\include -I.\include -I.\src\ifm\xpm -ID:\Logiciels\wxWidgets-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\lib\gcc_dll\msw -ID:\Logiciels\wxWidgets-2.6.2\contrib\include -I.\include -I.\src\ifm\xpm -ID:\Logiciels\CodeBlocks\include -c src\ifm\plugin.cpp -o .objs\src\ifm\plugin.o
mingw32-g++.exe -pipe -mthreads -frtti -fexceptions -D__GNUWIN32__ -D__WXMSW__ -O2 -enable-auto-import -DWXMAKINGDLL_IFM -DWXUSINGDLL -ID:\Logiciels\wxWidgets-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\contrib\include -I.\include -I.\src\ifm\xpm -ID:\Logiciels\wxWidgets-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\lib\gcc_dll\msw -ID:\Logiciels\wxWidgets-2.6.2\contrib\include -I.\include -I.\src\ifm\xpm -ID:\Logiciels\CodeBlocks\include -c src\ifm\resize.cpp -o .objs\src\ifm\resize.o
mingw32-g++.exe -pipe -mthreads -frtti -fexceptions -D__GNUWIN32__ -D__WXMSW__ -O2 -enable-auto-import -DWXMAKINGDLL_IFM -DWXUSINGDLL -ID:\Logiciels\wxWidgets-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\contrib\include -I.\include -I.\src\ifm\xpm -ID:\Logiciels\wxWidgets-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\lib\gcc_dll\msw -ID:\Logiciels\wxWidgets-2.6.2\contrib\include -I.\include -I.\src\ifm\xpm -ID:\Logiciels\CodeBlocks\include -c src\ifm\definterface.cpp -o .objs\src\ifm\definterface.o
mingw32-g++.exe -shared -Wl,--output-def=lib\gcc_dll\libwxmsw26_ifm.def -Wl,--out-implib=lib\gcc_dll\libwxmsw26_ifm.a -Wl,--dll -LD:\Logiciels\wxWidgets-2.6.2\lib\gcc_dll -LD:\Logiciels\CodeBlocks\lib .objs\src\ifm\defplugin.o .objs\src\ifm\dragndrop.o .objs\src\ifm\events.o .objs\src\ifm\manager.o .objs\src\ifm\plugin.o .objs\src\ifm\resize.o .objs\src\ifm\definterface.o -o lib\gcc_dll\libwxmsw26_ifm.dll -lwxmsw26_xrc -lwxmsw26_html -lwxmsw26_adv -lwxmsw26_core -lwxbase26_xml -lwxbase26 -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregex -lwxexpat -lwxbase26_net -lwxmsw26_media
Creating library file: lib\gcc_dll\libwxmsw26_ifm.a
.objs\src\ifm\defplugin.o:defplugin.cpp:(.text+0x57db): undefined reference to `_imp___ZN11wxRectArrayC1ERKS_'
.objs\src\ifm\defplugin.o:defplugin.cpp:(.text+0x5a7a): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
.objs\src\ifm\defplugin.o:defplugin.cpp:(.text+0x5aaa): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text+0x9ae): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text+0x9c8): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text+0x9e2): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text+0xc6e): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text+0xc88): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text+0xca2): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text+0xd54): undefined reference to `_imp___ZN11wxRectArray3AddERK6wxRectj'
.objs\src\ifm\events.o:events.cpp:(.text+0xd87): undefined reference to `_imp___ZN11wxSizeArray3AddERK6wxSizej'
.objs\src\ifm\events.o:events.cpp:(.text+0xdae): undefined reference to `_imp___ZN11wxSizeArray3AddERK6wxSizej'
.objs\src\ifm\events.o:events.cpp:(.text$_ZN19wxIFMCalcRectsEventD1Ev[wxIFMCalcRectsEvent::~wxIFMCalcRectsEvent()]+0x66): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text$_ZN19wxIFMCalcRectsEventD1Ev[wxIFMCalcRectsEvent::~wxIFMCalcRectsEvent()]+0x7d): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text$_ZN19wxIFMCalcRectsEventD1Ev[wxIFMCalcRectsEvent::~wxIFMCalcRectsEvent()]+0x94): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text$_ZN19wxIFMCalcRectsEventD1Ev[wxIFMCalcRectsEvent::~wxIFMCalcRectsEvent()]+0x151): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text$_ZN19wxIFMCalcRectsEventD1Ev[wxIFMCalcRectsEvent::~wxIFMCalcRectsEvent()]+0x168): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text$_ZN19wxIFMCalcRectsEventD1Ev[wxIFMCalcRectsEvent::~wxIFMCalcRectsEvent()]+0x17f): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text$_ZN19wxIFMCalcRectsEventD0Ev[wxIFMCalcRectsEvent::~wxIFMCalcRectsEvent()]+0x66): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text$_ZN19wxIFMCalcRectsEventD0Ev[wxIFMCalcRectsEvent::~wxIFMCalcRectsEvent()]+0x7d): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text$_ZN19wxIFMCalcRectsEventD0Ev[wxIFMCalcRectsEvent::~wxIFMCalcRectsEvent()]+0x94): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text$_ZN19wxIFMCalcRectsEventD0Ev[wxIFMCalcRectsEvent::~wxIFMCalcRectsEvent()]+0x155): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text$_ZN19wxIFMCalcRectsEventD0Ev[wxIFMCalcRectsEvent::~wxIFMCalcRectsEvent()]+0x16c): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\events.o:events.cpp:(.text$_ZN19wxIFMCalcRectsEventD0Ev[wxIFMCalcRectsEvent::~wxIFMCalcRectsEvent()]+0x183): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
.objs\src\ifm\resize.o:resize.cpp:(.text+0x34d8): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\resize.o:resize.cpp:(.text+0x34f3): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\resize.o:resize.cpp:(.text+0x350e): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
.objs\src\ifm\resize.o:resize.cpp:(.text+0x3588): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\resize.o:resize.cpp:(.text+0x35a3): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\resize.o:resize.cpp:(.text+0x35be): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
.objs\src\ifm\resize.o:resize.cpp:(.text+0x3692): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\resize.o:resize.cpp:(.text+0x36b0): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\resize.o:resize.cpp:(.text+0x36ce): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
.objs\src\ifm\resize.o:resize.cpp:(.text+0x37b8): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\resize.o:resize.cpp:(.text+0x37d6): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\resize.o:resize.cpp:(.text+0x37f4): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
.objs\src\ifm\definterface.o:definterface.cpp:(.text+0x4499): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\definterface.o:definterface.cpp:(.text+0x44b7): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\definterface.o:definterface.cpp:(.text+0x44d5): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
.objs\src\ifm\definterface.o:definterface.cpp:(.text+0x4594): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\definterface.o:definterface.cpp:(.text+0x45af): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\definterface.o:definterface.cpp:(.text+0x45ca): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
.objs\src\ifm\definterface.o:definterface.cpp:(.text+0x46a8): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\definterface.o:definterface.cpp:(.text+0x46c3): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\definterface.o:definterface.cpp:(.text+0x46de): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
.objs\src\ifm\definterface.o:definterface.cpp:(.text+0x488e): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\definterface.o:definterface.cpp:(.text+0x48ac): undefined reference to `_imp___ZN11wxSizeArrayD1Ev'
.objs\src\ifm\definterface.o:definterface.cpp:(.text+0x48ca): undefined reference to `_imp___ZN11wxRectArrayD1Ev'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 25 seconds)
0 errors, 26 warnings