Page 1 of 1

external compiler

Posted: Fri Nov 21, 2008 1:08 pm
by Action
Hi all,

I'd like to use CodeLite with an external compiler (Greenhills).
It all works fine as far as the build process is concerned. In the build window I see the output of the compiler but unfortunately warnings and errors are neither marked nor can I click on them and get to the code that caused the error/warning.
The marking might not work because I got the regular expression for the warning format of the compiler wrong (I just can't get used to them...).
So first of all, could someone please give me the expression for warnings and errors (examples for warning and error outputs see blow)?
".\abc\abc.c", line 107: warning #550-D: variable "test" was set but never used
".\abc\abc.c", line 916: error #65: expected a ";"
Thanks in advance.

And is it possible to make this lines 'clickable'? This is not that important if the lines are marked in colours - but now it happens that I actually overlook some lines because they are just plain text.

System is Windows XP with Codelite Rev. 1789.

Re: external compiler

Posted: Fri Nov 21, 2008 1:28 pm
by eranif
Action wrote:So first of all, could someone please give me the expression for warnings and errors (examples for warning and error outputs see blow)?
".\abc\abc.c", line 107: warning #550-D: variable "test" was set but never used
".\abc\abc.c", line 916: error #65: expected a ";"

Code: Select all

"([a-zA-Z]{0,2}:?[ a-zA-Z\.0-9_/\+\-]+ *)"(, line )([0-9]+ *)(: warning)
"([a-zA-Z]{0,2}:?[ a-zA-Z\.0-9_/\+\-]+ *)"(, line )([0-9]+ *)(: error)
In both 'Find index in pattern' and 'LIne number in pattern' leave the values 1 and 3 (respectively)
Action wrote:And is it possible to make this lines 'clickable'? This is not that important if the lines are marked in colours - but now it happens that I actually overlook some lines because they are just plain text.
It is done automatically - if the regex matches, it will be clickable

Eran

Re: external compiler

Posted: Fri Nov 21, 2008 1:39 pm
by Action
Thanks a lot, that does the trick!