Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Unable to compile wxWidgets (ld.exe has stopped working)
zabzonk:
> I just wanted to ask you, have you ever compiled Codeblocks after compiling wxWidgets with the new TDM-GCC
This weekend, on Windows 7, I compiled the trunk revision of CB, using the latest TDM-GCC, and linked it with the build of wxWidgets provided by wxPack - and everything seems to be working just fine.
ngr.hd:
--- Quote from: Neil Butterworth on November 01, 2011, 07:00:47 pm ---> I just wanted to ask you, have you ever compiled Codeblocks after compiling wxWidgets with the new TDM-GCC
This weekend, on Windows 7, I compiled the trunk revision of CB, using the latest TDM-GCC, and linked it with the build of wxWidgets provided by wxPack - and everything seems to be working just fine.
--- End quote ---
Actually the compiling process of wxWidgets crashes in between; obviously I cannont compile Codeblocks using half compiled wxWidgets.
By saying "latest TDM-GCC", do you mean 4.6.1?
ngr.hd:
--- Quote from: jens on November 01, 2011, 06:31:16 pm ---The official nightlies build by killerbot are build with gcc 4.5.2, if I see it correctly.
--- End quote ---
@jens : Yes, you're right. Killerbot had compiled wxWidgets using GCC 4.5.2 before compiling Codeblocks. He has not yet compiled wxWidgets using the new GCC 4.6.1 which causes crash. And it's not me, many of my friends have reported a fatal crash during the compilation of wxWidgets using GCC 4.6.1. I wanted to know will you update your pages, http://wiki.codeblocks.org/index.php?title=Installing_Code::Blocks_from_source_on_Windows and http://forums.codeblocks.org/index.php?topic=3299.0 portraying this issue?
I have also reported this issue on wxWidgets Forums.
Alpha:
I have compiled wxWidgets (2.8.12) and Code::Blocks (trunk) with TDM-GCC 4.6.1 on Windows XP and Vista (both 32 bit). The compilation succeeded for me without any problems.
--- Quote from: ngr.hd on November 01, 2011, 05:23:56 pm ---@Niel : It's just a normal crashing console in Windows 7. No logs are created.
--- End quote ---
To get an error log, append 2> ErrorLog.txt to your make command (> Log.txt will redirect all of the normal output to a log file); for example:
mingw32-make -f makefile.gcc 2> ErrorLog.txt
In the past, I have sometimes had linker (ld.exe) problems if I manually added optimization flags (beyond setting it to "release").
You could also try building wxWidgets from within a working Code::Blocks environment using the project file I posted earlier.
(Edit:)
Are you using the flag -fno-keep-inline-dllexport as suggested here?
MortenMacFly:
--- Quote from: Alpha on November 01, 2011, 10:40:17 pm ---(Edit:)
Are you using the flag -fno-keep-inline-dllexport as suggested here?
--- End quote ---
You have to use it, otherwise it won't work.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version