jeelabs / jeelib

JeeLib for Arduino IDE: Ports, RF12, and RF69 drivers from JeeLabs
https://jeelabs.org/202x/sw/jeelib/
The Unlicense
489 stars 215 forks source link

test1 sketch doesn't compile anymore with Arduino IDE 1.6.6 #90

Open gitdings opened 8 years ago

gitdings commented 8 years ago

Verifying "test1.io" sketch (dated 2013-02-02) fails using Arduino 1.6.6 (downloaded 2015-11-30). Looks like the checks have become more picky. :-( Removing 'static' from line 11 allows the sketch to compile.

Error messages:

Arduino: 1.6.6 (Linux), Board: "Arduino/Genuino Uno"

/tmp/arduino_3632c65f10886781221b5da43b787a25/test1.ino: In function 'void led(bool)': test1:11: error: 'void led(bool)' was declared 'extern' and later 'static' [-fpermissive] static void led (bool on) { ^ test1:11: error: previous declaration of 'void led(bool)' [-fpermissive] static void led (bool on) { ^ exit status 1 'void led(bool)' was declared 'extern' and later 'static' [-fpermissive]