gnupic@linuxhacker.org
gnupic@linuxhacker.org
On Fri, 19 Sep 2003, Alexandre Pereira Nunes wrote:
> Scott Dattalo wrote:
>
> >This sounds really great! Do you know when you might be releasing this
> >code?
>
> What about now ?
Great! But, unfortunately it doesn't compile with gcc 2.96 (yeah I
know...) I noticed that you are now compiling the code as though if it
were C++ code. Why change? Anyway, if you're curious, here's the very
beginning of a long list of errors that are printed:
$ make
gcc -I. -O2 -Wall -x c++ -c -o picstart.o picstart.c
picstart.c:246: parse error before `__attribute__'
picstart.c: In function `void SigHandler (...)':
picstart.c:249: ISO C++ forbids declaration of `ResetPICSTART' with no
type
picstart.c:249: new declaration `int ResetPICSTART ()'
picstart.c:238: ambiguates old declaration `void ResetPICSTART ()'
picstart.c:250: ISO C++ forbids declaration of `exit' with no type
picstart.c:250: `int exit' redeclared as different kind of symbol
/usr/include/stdlib.h:577: previous declaration of `void exit (int)'
picstart.c:251: parse error before `}'
If I remove the '-x' and the 'c++' options, the code compiles and runs
just fine. Now I just need to upgrade my PicStart+ firmware. (If I force
picp to use the older 3.00.00 firmware, it'll read the 18f452 just fine!
OTOH, it can't erase it.)
Scott
gnupic@linuxhacker.org