|
Post by michimac on Dec 17, 2015 14:31:43 GMT -8
I just got my GD2 and can run Hello World, blobs, fizz and jpeg. However, when I try to run simon, I get a compiler error. Attempting to run other games results in similar errors. I'm using a Sparkfun Redboard and have also tried a Diecimilia.
Arduino: 1.6.6 (Windows 7), Board: "Arduino/Genuino Uno"
Build options changed, rebuilding all C:\Users\laptop\Documents\Arduino\libraries\Gameduino2\1.Basics\simon\simon.ino: In function 'int get_note()':
simon:69: error: 'int get_note()' was declared 'extern' and later 'static' [-fpermissive]
static int get_note()
^
simon:8: error: previous declaration of 'int get_note()' [-fpermissive]
}
^
C:\Users\laptop\Documents\Arduino\libraries\Gameduino2\1.Basics\simon\simon.ino: In function 'int random_note()':
simon:82: error: 'int random_note()' was declared 'extern' and later 'static' [-fpermissive]
static int random_note()
^
simon:9: error: previous declaration of 'int random_note()' [-fpermissive]
^
exit status 1 'int get_note()' was declared 'extern' and later 'static' [-fpermissive]
|
|
|
Post by jamesbowman on Dec 17, 2015 16:58:15 GMT -8
Right this is a problem with the Arduino-specific preprocessing in 1.6.6
I suggest using version 1.6.5 instead - it works fine.
|
|
|
Post by michimac on Dec 17, 2015 17:14:02 GMT -8
Thank you! I knew it had to be something simple.
|
|