mansouriHassan / pinguino32

Automatically exported from code.google.com/p/pinguino32
0 stars 0 forks source link

Errors are reported in user.c file instead of "real" file #14

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. open examples/03.Analog/Smoothing/Smoothing.pde
2. compile

What is the expected output? What do you see instead?
file examples/03.Analog/Smoothing/Smoothing.pde wont compile due to the symbol 
conflict; the error message is misleading because of "wrong" file name and line 
number; also, would be nice if error message could contain additional 
information what cause errors - like below (copy&paste from chipkit mpide):

Smoothing.pde:30:5: error: 'index' redeclared as different kind of symbol
previous declaration of 'char* index(const char*, int)' in 
include/string.h:56:8 

instead of (pinguinoX.3):
examples/03.Analog/Smoothing/Smoothing.pde
pinguinoX.3/source/user.c:12:5: error: 'index' redeclared as different kind of 
symbol
error while linking pinguinoX.3/examples/03.Analog/Smoothing/Smoothing.o

What version of the product are you using? On what operating system?
pinguinoX.3 rev381 linux

Original issue reported on code.google.com by pijo...@gmail.com on 7 May 2012 at 8:37

GoogleCodeExporter commented 8 years ago
index seems to be a reserved keyword of gcc-mips-elf.
renamed index in rev.771

Original comment by rblanchot@gmail.com on 23 Apr 2013 at 8:01

GoogleCodeExporter commented 8 years ago
Its not the point. Error messages in pinguino are related to user.c file, not 
the real one which is edited by user.

Original comment by pijo...@gmail.com on 23 Apr 2013 at 8:09