Page 1 of 1

Multiple compilers in one output

Posted: Thu Sep 18, 2003 4:30 pm
by Drxenos
Here is an interesting problem for ya: The project I am on now uses multiple compilers: Ada, C, and CORBA. They, of course, all have different formats for error messages. I have one makefile that will build the entire system. I have TextPad set up so a tool will execute make. The problem I am having is that I can only setup TextPad with one regular expression to parse the output. Has anyone else run accross this and have an simple solution. I don't think regular expressions are powerful enough to parse multiple formats. Note that I am not talking about creating tools for the individual compilers. That, of course, wouldn't have this problem. I like having a tool tied to make so I have all effected files be rebuild by a change I make in one.

Any ideas?

Thanks,

DrXenos

Posted: Thu Sep 18, 2003 4:40 pm
by MudGuard
Depends on HOW different the output is...

Give us some error lines from each compiler and we'll see what can be done...

Posted: Thu Sep 18, 2003 9:48 pm
by Drxenos
MudGuard wrote:Depends on HOW different the output is...

Give us some error lines from each compiler and we'll see what can be done...
I'll take that as a no. I was hoping someone had found a way to do this regardless of the outputs from each compiler. I assume you want to see examples to see how similar they are, so at to attempt writing an RE. They are dissimilar enough that I think an RE wouldn't cut it. And it would be a nightmare if more compilers (or other text processors) were added and/or changed.

Besides, I work on other project that use other languages (perl, two different C++ compilers, a other two Ada compilers--besides the one mentioned above!). I would like to have just one tool that calls 'make' but, of course, the error lines are all gonna be different. I didn't wanna make multiple tools. Sigh.

Thanks anyways.

DrXenos