User forums > Using Code::Blocks
error 7! when linking
Zorroslade:
Hi,
I am building a rather large project >60Mb. It seems that CodeBlocks is crashing when I am linking. Here is my system:
1. Linux Debian Squeeze 64 bit (I keep it to the latest patches).
2. CodeSourcery Compiler -> version gcc/g++ 4.5.1
3. CodeBlocks July 20 2012, wx 2.8.12 (Linux unicode) - 64 bit -- svn 8510 SDK version 1.13.5
When I am linking, I get an error code of 7 (failed with error code 7!).
How can I turn on a more verbose debugging for more info?
Z
Jenna:
Does C::B ("just" the IDE) itself crash or the linker ?
If it's the linker, you have to find out which option gives you more meaningful output and/or read the manual to find out what a return value of 7 means.
I assume you have turned on full commandline logging already, if not: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Zorroslade:
Hi,
CodeBlocks does not crash (sorry for the misleading statement). I can repeatedly rebuild and get the same error.
I did forget one detail. I can build the app from the commandline without an error (sorry). I am guessing that maybe the redirect from g++ is causing some issue, or the text box can't handle the amount of data (Just a guess).
Z
Jenna:
--- Quote from: Zorroslade on July 23, 2012, 06:11:13 pm ---I did forget one detail. I can build the app from the commandline without an error (sorry).
--- End quote ---
Did you build with full commandline logging turned on ?
Does building from console succeed with the same commandline as C::B creates ?
Is your toolchain set up correctly, so C::B uses the same compiler and li nker than you se from commandline ?
Note: C::B puts the compilers masterpath at the top of the searchpath while compiling/linking.
Zorroslade:
Hi,
I am asking how to turn on the logging/debugging for the CodeBlocks, so I can provide more info.
We are using a cbp2make utility to convert our cbp file to a makefile. I do believe that it is the same. This error code 7 only started to occur when we moved to the codesourcery compiler.
I have specified the Toolchain and path in the Compiler settings options under Settings.
Z
Navigation
[0] Message Index
[#] Next page
Go to full version