In my opinion, this is a classic example of a failure to test and create the "correct" solution to the problem. The OP's problem is caused by code bloat from inlined functions. The easiest way to fix this problem is to pass -fno-keep-inline-dllexport as a compiler option. Ideally, the win32-g++ mkspec should be updated with this change. I worked on creating a patch for this problem this weekend but after patching and building Qt I got distracted by the multitude of problems I had building qt-creator. Beware if you move on to build creator, there are several bugs when building with win32 vs. win64. For example, on win32 builds, MIB_TCP_STATE will be undefined because of an incorrect preprocessor check for the version of GCC.
Hopefully this will serve as a wake-up call for people to do more testing before pushing code and releasing immature versions.
[quote author="Zebbik" date="1345647851"]Hi
I configured makefile using this command:
@.\configure.exe -opensource -plugin-sql-mysql -plugin-sql-sqlite -plugin-sql-odbc -developer-build -no-qt3support -platform win32-g++ -I C:\ApacheMysqlPhp\Mysql\include -L C:\ApacheMysqlPhp\Mysql\lib -L C:\ApacheMysqlPhp\Mysql\lib\opt
and then executed make.exe (make.exe is the same file as mingw32-c++.exe, mingw32-gcc.exe, mingw32-g++.exe etc.). However in the middle, the process stopped with this log:
@c:/mingw/bin/../lib/gcc/mingw32/4.7.0/../../../../mingw32/bin/ld.exe: final link failed: Memory exhausted
collect2.exe: error: ld returned 1 exit status
make: *** [....\lib\QtGuid4.dll] Error 1
make: Leaving directory
C:/Qt/4.8.2/src/gui' make: *** [debug-all] Error 2 make: Leaving directoryC:/Qt/4.8.2/src/gui'
make: *** [sub-gui-make_default-ordered] Error 2@
I have windows 7 64bit. Why is there this error?