Recently we have added build support for compiling our unit test using gcc on
win32. The test compile successfully using Visual Studio, but when we compile
using mingw/gcc we get an error from the assembler like the following:
fatal error: can't write x.obj, file too big
$ gcc -v
Using built-in specs.
Configured with: ../gcc-4.6.2/configure --enable-languages=c,c++,ada,fortran,obj
c,obj-c++ --disable-sjlj-exceptions --with-dwarf2 --enable-shared --enable-libgo
mp --disable-win32-registry --enable-libstdcxx-debug --enable-version-specific-r
untime-libs --build=mingw32 --prefix=/mingw
Thread model: win32
gcc version 4.6.2 (GCC)
From some research on the web I have seen the others have had the same issue and have worked around it by enabling optimization.