Author Topic: ld error on building wxwidgets 2.8.12 with mingw32  (Read 5101 times)

gekko

  • Guest
ld error on building wxwidgets 2.8.12 with mingw32
« on: April 24, 2011, 09:06:20 pm »
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

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7588
    • My Best Post
Re: ld error on building wxwidgets 2.8.12 with mingw32
« Reply #1 on: April 24, 2011, 09:09:55 pm »
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.
« Last Edit: April 24, 2011, 09:14:17 pm by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org