Hello,
i'm getting an error
"
c:/program files (x86)/codeblocks/mingw/bin/../lib/gcc/mingw32/4.5.2/../../../..
/mingw32/bin/ld.exe: out of memory allocating 28119168 bytes
collect2: ld returned 1 exit status
mingw32-make: *** [..\..\lib\gcc_dll\wxmsw28_gcc_custom.dll] Error 1
"
on building wxwidgets/msw in C::B/mingw 4.5.2 with:
"
mingw32-make -f makefile.gcc CPPFLAGS="-Os -pipe -mthreads" CXXFLAGS="-fvisibility=hidden -fvisibility-inlines-hidden -Wno-attributes" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed -s" SHARED=1 BUILD=release UNICODE=0 DEBUG_INFO=0 DEBUG_FLAG=0 MONOLITHIC=1 USE_EXCEPTIONS=0 USE_RTTI=0 OFFICIAL_BUILD=1 RUNTIME_LIBS=static
"
and also with
"
LDFLAGS ?= --no-keep-memory --reduce-memory-overheads
"
from an old thread here.
Is there any solution to build an actual complete wxwidgets WITHOUT any hacks on c::b/gcc/mingw/g++/ld?
ld breaks ever at 1.9xx gb ram.
thx