Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Error Parser for external compiler. How to?

Sum up:

How to install ErrorParser for external compiler
1. Install Eclipse (minimal 3.5, Galileo), install CDT 6.1 from
http://download.eclipse.org/tools/cdt/builds/
2. Go to project properties->C/C++ Build->Settings-> tab Error Parsers to
enable the parser (CDT Regular Expression Error Parser). You can set up the
rules/patterns in Workspace Preferences->Build Settings.
3. The content of your console view is now the input of the parser, adjust
the pattern to get the input parsed.

Example (Eclipse 3.5 + CDT 6.1 + Keil UV2):
1. Invoke the compiler and get the build logs display at the console
Project -> Proporties -> C/C++ Build -> Build Command: MyBuild.bat

MyBuild.bat:
--------------------------------------------------------
c:\keil\uv2\uv2 -b Rcv.Uv2 -o "BUILD.LOG"
@echo off
FOR %%G in (BUILD.LOG) DO type %%G
--------------------------------------------------------

2. Logs displayed at the console
--------------------------------------------------------
Build target 'Target 1'
compiling Tstopc.c...
assembling .\MICRO_A\Tstopc.src...
compiling Tstreg.c...
assembling .\MICRO_A\Tstreg.src...
compiling Scnsync.c...
.\SRC\SCN.C(59): error C67: 'scn_T8idx': undefined identifier
.\SRC\SCN.C(70): error C67: 'scn_timerReload': undefined identifier
.\SRC\SCN.C(71): error C67: 'scn_T8idx': undefined identifier
.\SRC\SCN.C(73): error C67: 'scn_searchForOld': undefined identifier
.\SRC\SCN.C(78): error C67: 'sy_Sync': undefined identifier
.\SRC\SCN.C(78): error C67: 'SY_FIRST': undefined identifier
-------------------------------------------------------- 

3. Adjust the error parser option:
Severity: Error
Pattern: (.*)\((\d+)\)\: \berror\b(.*)
File: $1
Line: $2
Description: Error: $1, line $2,$3

4. Compiler the project, you will see the results in the "Problem", :)

I hope i can save the time for those who face the same problem.

Many many thanks to Andrew and the to CDT team

Mike
-- 
View this message in context: http://old.nabble.com/Error-Parser-for-external-compiler.-How-to--tp26215807p26315277.html
Sent from the Eclipse CDT - Development mailing list archive at Nabble.com.



Back to the top