Manuel Martín wrote:
> I decided to try gcc 4.3.0 Alpha 2008-05-02.
> On the first try, failed:
> Compiling wxWidgets 2.8.8 with a custom makefile (the one wxWidgets
> comes with) it works on some files. But fails with zillions of error
> messages. In example:
> error: declaration of 'struct std::allocator<wchar_t>'
> error: invalid use of incomplete type 'struct std::allocator<wchar_t>'
> I can compile with gcc 4.2.1 with no problems.
> My configuration is:
> Windows XP SP3
> I have unzipped these seven files in that order because there are some
> files overwritting older ones (I accept overwritting). Is this O.K. ?
What is the command your are using to invoke make?
Here's what mine is about when I compile wxWidgets using 4.x version of
GCC not package by MinGW.
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 CLEAN
REM Build LDFLAGS and CPPFLAGS are on the same line with mingw32-make.
mingw32-make -f makefile.gcc USE_XRC=1 SHARED=1 MONOLITHIC=1
BUILD=release UNICODE=1 LDFLAGS="-enable-stdcall-fixup"
The -Wmissing-include-dirs adds warning for directory it can not find
this is not needed, but helps to see issues when compiling trunk.
The -fno-strict-aliasing is needed because it reduces warnings and I
read it fixes runtime linking issues.
The -enable-stdcall-fixup just reduces the warnings, so not needed