edward0429 / arduino

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

SPI Library broken in new-extension branch #518

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Running the new-extension build on OSX 10.6, the following code:
#include <SPI.h>                // swap out whatever library is 
appropriate below

void setup() {
}

void loop() {
}

Generates the following errors:

In file included from /Users/tigoe/Documents/arduino development 
stuff/gitRepo/Arduino/build/macosx/work/Arduino.app/Contents/Resources/Java/libr
aries/SPI/SPI.h:15,
                from /Users/tigoe/Documents/arduino development 
stuff/gitRepo/Arduino/build/macosx/work/Arduino.app/Contents/Resources/Java/libr
aries/SPI/SPI.cpp:12:
/Users/tigoe/Documents/arduino development 
stuff/gitRepo/Arduino/build/macosx/work/Arduino.app/Contents/Resources/Java/hard
ware/arduino/cores/arduino/pins_arduino.h:66: error: previous declaration of 
'const uint16_t port_to_mode_PGM []' with 'C++' linkage

And several other identical errors on other lines of pins_arduino.h

Original issue reported on code.google.com by tom.i...@gmail.com on 4 Apr 2011 at 11:34

GoogleCodeExporter commented 9 years ago
Does this error persist if you do an "ant clean" and then "ant run"?  I think 
it's an artifact of the old pins_arduino.h you have in the "cores/arduino" 
directory; they've since moved to "pins/" directory.

Original comment by dmel...@gmail.com on 17 Apr 2011 at 12:06

GoogleCodeExporter commented 9 years ago
ant clean fixed it after  your recent changes, thanks.

Original comment by tom.i...@gmail.com on 18 Apr 2011 at 11:28