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/
_______________________________________________
AVR-chat mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-chat