I have a hell of a time trying to compile wxthings and other components with mingw 3.4.5 (latest candidate) using baked makefile.gcc (WinXP).
wxWidgets is compiled for Codeblocks, that is:
mingw32-make -f makefile.gcc MONOLITHIC=1 SHARED=1 UNICODE=1 BUILD=release
Compilation for wxthings fails with tons of warnings and ends up with an internal compiler error.
Warnings start at this point:
and so it goes on and breaks down into this "ICE":-------------- Build: Win32 DLL Unicode Release Monolithic in wxthings_wxthings ---------------
mingw32-g++.exe -O2 -DWIN32 -D_USRDLL -DDLL_EXPORTS -DWXUSINGDLL -D_UNICODE -D__WXMSW__ -DWXMAKINGDLL_WXTHINGS -Ic:\dev\wxWidgets-2.6.3\lib\gcc_dll\mswu -Ic:\dev\wxWidgets-2.6.3\include -I..\include -IC:\MinGW\include -c .\..\src\block.cpp -o msvc6prj\wxthings\..\src\block.o
.\..\src\block.cpp:36: warning: non-inline function 'void wxArrayBlockInt::DoEmpty()' is defined after prior declaration as dllimport: attribute ignored
.\..\src\block.cpp:36: warning: 'void wxArrayBlockInt::DoEmpty()' defined locally after being referenced with dllimport linkage
.\..\src\block.cpp:36: warning: non-inline function 'void wxArrayBlockInt::Add(const _wxObjArraywxArrayBlockInt&, size_t)' is defined after prior declaration as dllimport: attribute ignored
.\..\src\block.cpp:36: warning: 'void wxArrayBlockInt::Add(const _wxObjArraywxArrayBlockInt&, size_t)' defined locally after being referenced with dllimport linkage
The ICE is is said to be patched away with the mingw gcc 3.4.5 RC (see here http://belnet.dl.sourceforge.net/source ... _notes.txt and here.\..\src\block.cpp:1032: warning: non-inline function 'void wxBlockDoubleSelectionIterator::Reset()' is defined after prior declaration as dllimport: attribute ignored
.\..\src\block.cpp:1032: warning: 'void wxBlockDoubleSelectionIterator::Reset()' defined locally after being referenced with dllimport linkage
.\..\src\block.cpp:1049: warning: non-inline function 'bool wxBlockDoubleSelectionIterator::IsInSelection(const wxPoint2DDouble&) const' is defined after prior declaration as dllimport: attribute ignored
.\..\src\block.cpp:1049: warning: 'bool wxBlockDoubleSelectionIterator::IsInSelection(const wxPoint2DDouble&) const' defined locally after being referenced with dllimport linkage
.\..\src\block.cpp: In destructor `wxArrayBlockInt::~wxArrayBlockInt()':
.\..\src\block.cpp:36: internal compiler error: in rest_of_handle_final, at toplev.c:2067
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
Process terminated with status 1 (0 minutes, 7 seconds)
1 errors, 50 warnings
https://sourceforge.net/tracker/?func=d ... up_id=2435
but I see the very same thing here with mingw gcc 3.4.4, 3.4.5 and 3.4.2.
Does this look like a good mess of weird stuff for filing bug-reports to gcc and wxwidgets teams or I am just fooling myself going terribly wrong at some step?
So before I get there I just wanted to ask, wether anybody around here has managed to compile wxthings with a mingw setup and could give me some hints on what to do, a workaround.
Greetz & Thanks,
Bj