User forums > General (but related to Code::Blocks)

Using C::B's MinGW to compile wxWidgets 2.8.12 -> ld.exe error

<< < (2/2)

Jenna:
On my Windows test-systems (xp, 7 and 8.1) I build wx with this commandline to compile C::B and it works.

stahta01:
Edit: Reread this thread and saw the answer I mentioned was already covered.

This sounds like the wxWidgets link error from long ago.
What was the option to fix this?

I have upgraded my MinGW to a version without this bug.

From my old build batch files I see I used these in the past.

--- Code: ----fno-strict-aliasing
-Wno-unused-local-typedefs
-fno-keep-inline-dllexport

--- End code ---

I think this one was the fix "-fno-keep-inline-dllexport".


--- Code: ---CXXFLAGS="-fno-keep-inline-dllexport"

--- End code ---

From http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows

--- Quote ---If you are using a recent version of MinGW you may find that the object files are too large and that the linker runs out of memory. To fix this problem you need to edit config.gcc so that inline functions are not exported, by modifying the CFLAGS and CXXFLAGS lines to:

 CFLAGS ?= -fno-keep-inline-dllexport

 CXXFLAGS ?= -fno-keep-inline-dllexport

--- End quote ---

Tim S.

Navigation

[0] Message Index

[*] Previous page

Go to full version