[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [avr-gcc-list] Gcc error message format
From: |
Ron |
Subject: |
RE: [avr-gcc-list] Gcc error message format |
Date: |
Wed, 8 Jun 2005 22:12:05 +1000 |
> "Colin Paul Gloster" <address@hidden> wrote:
>
> > sed "s/\([0-9]*\)\(: error: \)/(\1) \2/g"
>
> But don't forget that you gotta catch stderr, not stdout.
>
> --
> cheers, J"org .-.-. --... ...-- -.. . DL8DTL
>
Thanks Guys. That wasn't exactly right as it left the colon after the
filename. But a slight change fixed that. The compile line in the
makefile becomes:
# Compile: create object files from C source files.
%.o : %.c
@echo
@echo $(MSG_COMPILING) $<
@echo "$(CC) -c $(ALL_CFLAGS) $< -o $@ 2>'errors.txt'"
sed "s/c:\([0-9]*\)/c(\1)/" errors.txt
I can now create, edit and compile a multi-file project in Visual Studio
with all the nice bits that go along with that, including now having the
editor navigate me to the error line (and their intellisense gizmo
really is good).
Cheers
Ron