I have created a codeblock project to compile sample application with static lib but I always have the same error :
- Code: Select all
Compiler : GNU GCC Compiler (called directly)
Directory : D:\Projet En cours\SmartTester\wxaui\samples\
--------------------------------------------------------------------------------
Switching to target: Win32 Static Release
windres.exe -i wxauitest.rc -J rc -o Release\wxauitest.res -O coff -ID:\Logiciels\wxWidgets-2.6.2\include
mingw32-g++.exe -pipe -mthreads -frtti -fexceptions -D__GNUWIN32__ -D__WXMSW__ -O2 -W -ID:\Logiciels\wxWidgets-2.6.2\include -ID:\Logiciels\wxWidgets-2.6.2\contrib\include -I..\include -ID:\Logiciels\wxWidgets-2.6.2\lib\gcc_lib\msw -ID:\Logiciels\CodeBlocks\include -c wxauitest.cpp -o Release\wxauitest.o
mingw32-g++.exe -LD:\Logiciels\wxWidgets-2.6.2\lib\gcc_lib -L..\lib\gcc_lib -LD:\Logiciels\CodeBlocks\lib -o wxauitest.exe Release\wxauitest.o Release\wxauitest.res -lwxmsw26_xrc -lwxmsw26_html -lwxmsw26_adv -lwxmsw26_core -lwxbase26_xml -lwxbase26 -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregex -lwxexpat -lwxbase26_net -lwxmsw26_media -lwxaui -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 -lwsock32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid -mwindows
..\lib\gcc_lib/libwxaui.a(manager.o):manager.cpp:(.text+0xf8cd): undefined reference to `vtable for wxMiniFrame'
..\lib\gcc_lib/libwxaui.a(manager.o):manager.cpp:(.text+0x1032e): undefined reference to `vtable for wxMiniFrame'
..\lib\gcc_lib/libwxaui.a(manager.o):manager.cpp:(.rdata$_ZTV14wxFloatingPane[vtable for wxFloatingPane]+0x8): undefined reference to `wxMiniFrame::GetClassInfo() const'
..\lib\gcc_lib/libwxaui.a(manager.o):manager.cpp: (.text$_ZN14wxFloatingPaneD0Ev[wxFloatingPane::~wxFloatingPane()]+0x77): undefined reference to `vtable for wxMiniFrame'
..\lib\gcc_lib/libwxaui.a(manager.o):manager.cpp: (.text$_ZN14wxFloatingPaneD0Ev[wxFloatingPane::~wxFloatingPane()]+0xdb): undefined reference to `vtable for wxMiniFrame'
..\lib\gcc_lib/libwxaui.a(manager.o):manager.cpp: (.text$_ZN14wxFloatingPaneD1Ev[wxFloatingPane::~wxFloatingPane()]+0x77): undefined reference to `vtable for wxMiniFrame'
..\lib\gcc_lib/libwxaui.a(manager.o):manager.cpp: (.text$_ZN14wxFloatingPaneD1Ev[wxFloatingPane::~wxFloatingPane()]+0xcd): undefined reference to `vtable for wxMiniFrame'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 30 seconds)
0 errors, 0 warnings
I don't understand because I have checked my defines when I compile libwxaui.a and I have __WXMSW__ so wxMiniFrame should be declared.