external compiler

General questions regarding the usage of CodeLite
Action
CodeLite Enthusiast
Posts: 13
Joined: Fri Nov 21, 2008 12:51 pm
Contact:

external compiler

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: external compiler

Post 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
Make sure you have read the HOW TO POST thread
Action
CodeLite Enthusiast
Posts: 13
Joined: Fri Nov 21, 2008 12:51 pm
Contact:

Re: external compiler

Post by Action »

Thanks a lot, that does the trick!
Post Reply