News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

ld error on building wxwidgets 2.8.12 with mingw32

Started by gekko, April 24, 2011, 09:06:20 PM

Previous topic - Next topic

gekko

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

stahta01

#1
Yes, Use MONOLITHIC=0.

Note: The Code::Blocks Devs uses TDM MinGW GCC instead.

Edit: I suggest you find another site to post NON Code::Blocks questions for your future wxWidgets questions I suggest http://forums.wxwidgets.org/ also called http://wxforum.shadonet.com/

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]