Hi!
I just compiled the wxaui-library with mingw. When I now try to link the wxaui-library to the wxaui-sample I get several hundreds of linker errors, f.e.:
[Linker error] undefined reference to `operator new(unsigned int)'
[Linker error] undefined reference to `operator new(unsigned int)'
[Linker error] undefined reference to `operator new(unsigned int)'
Z:\MIO\external\wxWidgets-2.6.2\lib\gcc_libdebug\libwxmsw26d_html.a(htmllib_htmlwin.o)(.text+0x12) In function `ZNK12wxWindowBase18GetBackgroundStyleEv':
[Linker error] undefined reference to `__gxx_personality_sj0'
...
[Linker error] undefined reference to `__gxx_personality_sj0'
Z:\MIO\external\wxWidgets-2.6.2\lib\gcc_libdebug\libwxmsw26d_html.a(htmllib_m_image.o)(.text+0x2710) In function `ZN15wxHtmlImageCell8SetImageERK7wxImage':
[Linker error] undefined reference to `__gxx_personality_sj0'
[Linker error] undefined reference to `operator new(unsigned int)'
[Linker error] undefined reference to `operator delete(void*)'
[General Error] Too many messages; abort.
wxWidgets is working well and the wxlibaui.a is the only new library within this project.
Some data:
g++-version: 3.4.2
gcc-version: 3.4.2
mingw32-make: 3.80
Please help... :/
Thanks!
Kirix Support Forums
Linker error with Mingw
8 posts
• Page 1 of 1
And wxaui users who are using mingw able to help here? Works great with gcc on linux, but I don't have a mingw setup here right now, so I can't check convieniently.
Any takers?
Ben
Any takers?
Ben
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
To prove that's not my fault (oh, it is, I know) I just made a completely new debug build of the wxwidgets-2.6.2 (with mingw32-make -fmakefile.gcc), then compiled manager.h & manager.c to libaui.a.
And... same linker errors again - maybe I should change my compiler to VCC? -_-
Regards
And... same linker errors again - maybe I should change my compiler to VCC? -_-
Regards
- mydevnull
- Registered User
- Posts: 10
- Joined: Wed Feb 01, 2006 9:35 am
Here some more information:
Compiled all stuff with VSC++ 6.0 and guess what - everything works fine! :/
Maybe the compiler output helps a bit:
Regards,
from a very frustrated guy
Compiled all stuff with VSC++ 6.0 and guess what - everything works fine! :/
Maybe the compiler output helps a bit:
- Code: Select all
Compiler: Default compiler
Building Makefile: "Z:\MIO\external\wxaui-0.9.1\sample\Makefile.win"
Führt make clean aus
rm -f wxauitest.o test_private.res test.exe
g++.exe -c wxauitest.cpp -o wxauitest.o -I"lib/gcc/mingw32/3.4.2/include" -I"include/c++/3.4.2/backward" -I"include/c++/3.4.2/mingw32" -I"include/c++/3.4.2" -I"include" -I"Z:/MIO/external/wxWidgets-2.6.2/lib/gcc_libdebug/mswd" -I"Z:/MIO/external/wxWidgets-2.6.2/include" -I"Z:/MIO/external/wxaui-0.9.1/include" -D__WXMSW__ -D__WXDEBUG__ -Wall
wxauitest.cpp: In constructor `SettingsPanel::SettingsPanel(wxWindow*, MyFrame*)':
wxauitest.cpp:235: warning: unused variable 'vert'
windres.exe -i test_private.rc --input-format=rc -o test_private.res -O coff --include-dir Z:/MIO/external/WXAUI-~1.1/sample
g++.exe wxauitest.o test_private.res -o "test.exe" -L"lib" -L"Z:/MIO/external/wxWidgets-2.6.2/lib/gcc_libdebug" -L"Z:/MIO/external/wxaui-0.9.1/output" -L"Z:/MIO/external/wxaui-0.9.1/sample" -mwindows -lwxmsw26d_xrc -lwxmsw26d_html -lwxmsw26d_adv -lwxmsw26d_core -lwxbase26d_xml -lwxbase26d -lwxtiffd -lwxjpegd -lwxpngd -lwxzlibd -lwxregexd -lwxexpatd -lwxbase26d_net -lwxmsw26d_media -lwxaui -lwinspool -lwinmm -lrpcrt4 -lwsock32 -loleaut32 -lkernel32 -ladvapi32 -lcomctl32 -lcomdlg32 -lshell32 -luser32 -lgdi32 -luuid -lole32
Z:/MIO/external/wxaui-0.9.1/output/libwxaui.a(manager.o) (.text+0x8130):manager.cpp: undefined reference to `wxMDIParentFrame::ms_classInfo'
Z:/MIO/external/wxaui-0.9.1/output/libwxaui.a(manager.o) (.text$_ZN11wxMiniFrameD2Ev[wxMiniFrame::~wxMiniFrame()]+0xb):manager.cpp: undefined reference to `vtable for wxMiniFrame'
Z:/MIO/external/wxaui-0.9.1/output/libwxaui.a(manager.o) (.text$_ZN11wxMiniFrameC2EP8wxWindowiRK8wxStringRK7wxPointRK6wxSizelS4_ [wxMiniFrame::wxMiniFrame(wxWindow*, int, wxString const&, wxPoint const&, wxSize const&, long, wxString const&)]+0x4c):manager.cpp: undefined reference to `vtable for wxMiniFrame'
Z:/MIO/external/wxaui-0.9.1/output/libwxaui.a(manager.o) (.rdata$_ZTV14wxFloatingPane[vtable for wxFloatingPane]+0x8):manager.cpp: undefined reference to `wxMiniFrame::GetClassInfo() const'
collect2: ld returned 1 exit status
make.exe: *** [test.exe] Error 1
Ausführung beendet
Regards,
from a very frustrated guy
- mydevnull
- Registered User
- Posts: 10
- Joined: Wed Feb 01, 2006 9:35 am
I recently tried adding wxAUI to a project of mine using mingw and it worked fine. I didn't include it as a library though, but included the files directly. I'm using a shared build of wx 2.6.2.
- hans_p
- Registered User
- Posts: 1
- Joined: Mon Feb 06, 2006 4:54 pm
With a shared build there is no problem at my project, too...
Strange.
Maybe I should get involved in bakefile really fast and then create some bakefiles for wxAUI.
Regards,
Daniel
Strange.
Maybe I should get involved in bakefile really fast and then create some bakefiles for wxAUI.
Regards,
Daniel
- mydevnull
- Registered User
- Posts: 10
- Joined: Wed Feb 01, 2006 9:35 am
-
Ben - Kirix Support Team
- Posts: 525
- Joined: Mon Dec 19, 2005 6:29 am
Using bakefiles is real horror... The documentation online is far away from being complete enough to use bakefiles within own projects.
For wxWidgets they use several nested includes with variables documented over all files... well... I won't spend more time on creating bakefiles without a better documentation. Sorry.
Maybe one day the bakefile docs will get better - then I'll try again.
For wxWidgets they use several nested includes with variables documented over all files... well... I won't spend more time on creating bakefiles without a better documentation. Sorry.
Maybe one day the bakefile docs will get better - then I'll try again.
- mydevnull
- Registered User
- Posts: 10
- Joined: Wed Feb 01, 2006 9:35 am
8 posts
· Page 1 of 1
Return to wxAUI Questions, Thoughts & Feedback