Tim, Thanks for the info.
My "Build messages" tab says:
||=== Build: Debug in subscribeAndCallBackClassMessages (compiler: LLVM Clang Compiler) ===|
||=== Build finished: 0 error(s), 0 warning(s) (0 minute(s), 9 second(s)) ===|
However I know there is an error because I've intentionally left out a ';'.
Tim, are you saying there is a log file somewhere that CB looks at? Maybe my makefile isn't outputting it, or putting it in a different place?
Cheers,
Nap
I have a feeling this post (http://forums.codeblocks.org/index.php/topic,15122.msg119754.html#msg119754) might have the answer to my question.
I might be able to redirect, copy, or symlink to it somehow. How would I get the build log out of Make or Clang?
@Tim, my "Build Log" also says there are no errors:
Running project pre-build steps
/home/nap/src/cbMiPal/backupfiles.sh /home/nap/src/MiPal/GUNao/posix/tutorials/subscribeAndCallBackClassMessages/ /home/nap/src/cbMiPal/GUNao/posix/tutorials/subscribeAndCallBackClassMessages/
-------------- Build: Debug in subscribeAndCallBackClassMessages (compiler: LLVM Clang Compiler)---------------
Running command: make
Process terminated with status 0 (0 minute(s), 9 second(s))
0 error(s), 0 warning(s) (0 minute(s), 9 second(s))
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"-------------- 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))
(No output produced in the /bin/Release folder!!)
"Build messages"||=== Build: all in a1 (compiler: LLVM Clang Compiler) ===|
||=== Build finished: 0 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
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