User forums > Using Code::Blocks
CB 13.12: Build log not accessable when compiling in an external terminal window
stahta01:
If the "build log" has no info in it; I have no idea how CB can fix this issue.
Tim S.
Jenna:
Make sure you have turned on full commandline logging (see: http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F).
You can check the make commands in "Project -> Build options -> Make commands" to be sure the make output is not redirected to a file or null-device.
To make errors clickable, you also need a proper makefile execution directory in "Project -> Properties -> Project settings".
Napoleon:
EDITI have deleted the ~/.codeblocks folder and ran CB again. It has reset the settings, and now it's detecting the error. Hopefully my individual project settings will be honoured.
I have a feeling this problem doesn't have anything to with my custom make. Somehow I've broken my set up while trying to get it the way I want it.
I suspect this because a project I was working on last week is now also not showing compile errors. Both the 'Build log' and 'Build messages' tabs, are saying there are no errors, when I've intentionally removed a semi-colon.
"Build log"
--- Code: ----------------- Build: all in a1 (compiler: LLVM Clang Compiler)---------------
clang -Wall -g -c /home/user/Documents/assignments/a1/a1/bashed.c -o obj/Release/bashed.o
clang++ -o bin/Release/a1 obj/Release/bashed.o -lreadline
Process terminated with status 0 (0 minute(s), 0 second(s))
0 error(s), 0 warning(s) (0 minute(s), 0 second(s))
--- End code ---
(No output produced in the /bin/Release folder!!)
"Build messages"
--- Code: ---||=== Build: all in a1 (compiler: LLVM Clang Compiler) ===|
||=== Build finished: 0 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
--- End code ---
I also don't understand why CLANG++ is being used to compile, since I haven't set any variables to indicate I want it. Besides, the source file has a .c extension.
And another couple things I've noticed;
* my terminal settings in Settings -> Environment -> General Settings are wrong. Both are set to use gnome-terminal, where I had xterm for the Terminal to launch console programs:, and
* code completion for declared variables is not working, my variables are not showing in the list.
Cheers,
Nap
Jenna:
--- Quote from: Napoleon on April 21, 2014, 07:14:40 pm ---Is there a way of resetting back to default settings? Or do I need purge CB and reinstall?
--- End quote ---
This will not help, because user-settings are not cleared.
The easiest way to reset all to defaults (with losing all settings), is to delete the "default.conf" in "$HOME/.codeblocks".
To try if it works, you can also start C::B with another personality ("codeblocks --help" on the commandline for details).
Napoleon:
@Jens, thnx. I did that and it's back to normal.
And, I've also understood what the original problem was.
I am running an interactive script in my Pre-Build steps. I pause in this script to let me decide if I want to make a backup of my files. Since my version of CB doesn't have a built in 'console' tab, like I've seen in other IDE's, I made it run in a separate terminal. This is not ideal, but quite OK.
The problem, and the basis of this whole thread, was caused because I decided to run the custom make system in a separate terminal as well, thus CB wasn't able to access the output to determine the result. I've changed this script to not open a new terminal, and CB is picking up the output just as it should. :)
Is there a 'console' plugin for CB 13.12 (compiled from source) which provides a terminal?
Cheers,
Nap
Navigation
[0] Message Index
[*] Previous page
Go to full version