Kirix Support Forums

CodeBlocks/mingw and compiler error

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

CodeBlocks/mingw and compiler error

Postby mosfet on Tue Jan 10, 2006 2:26 pm

Hi,

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.
mosfet
Registered User
 
Posts: 4
Joined: Tue Jan 10, 2006 2:23 pm
Location: Paris

Re: CodeBlocks/mingw and compiler error

Postby mosfet on Tue Jan 10, 2006 3:02 pm

I found my error, I have changed the link order (put wxaui first) as shown below :

-lwxaui -lwxmsw26_xrc -lwxmsw26_html -lwxmsw26_adv -lwxmsw26_core -lwxbase26_xml -lwxbase26 -lwxtiff -lwxjpeg -lwxpng -lwxzlib -lwxregex -lwxexpat -lwxbase26_net -lwxmsw26_media -lwinspool -lwinmm -lshell32 -lcomctl32 -lctl3d32 -lodbc32 -ladvapi32 -lwsock32 -lopengl32 -lglu32 -lole32 -loleaut32 -luuid -mwindows

For people interested I have a working CodeBlocks project that compile(only for static for now, but dynamic very soon) wxaui and its sample app.
It's available here : http://smartdev-info.com/IMG/zip/wxaui_CodeBlocks.zip
mosfet
Registered User
 
Posts: 4
Joined: Tue Jan 10, 2006 2:23 pm
Location: Paris

Return to wxAUI Questions, Thoughts & Feedback