[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-chat] Using Microsoft Visual Studio
From: |
Ron Kreymborg |
Subject: |
[avr-chat] Using Microsoft Visual Studio |
Date: |
Tue, 26 Feb 2008 23:18:57 +1100 |
Microsoft Visual Studio provides some nice features when used as an IDE for
avr-gcc development. However gcc error messages have a different format to
what the IDE expects which prevents using a simple mouse click on an
error/warning message to navigate to the offending line in the file. The
following addition to the avr-gcc makefile makes the small change required.
Replace:
$(OBJDIR)/%.o : %.c
@echo
@echo $(MSG_COMPILING) $<
$(CC) -c $(ALL_CFLAGS) $< -o $@
with:
$(OBJDIR)/%.o : %.c
@echo
@echo $(MSG_COMPILING) $<
@echo '$(CC) -c $(ALL_CFLAGS) $< -o $@ 2> errors.txt' >
CheckErrors.bat
@echo 'sed -e "s/c:\([0-9]*\)/c(\1)/" -e "s/h:\([0-9]*\)/h(\1)/"
errors.txt' >> CheckErrors.bat
CheckErrors.bat
Not the perfect fix but it works.
Ron
E-mail message checked by Spyware Doctor (5.5.0.178)
Database version: 5.09290
http://www.pctools.com/spyware-doctor/