Hi everyone!
I just received my Maple r5 and this afternoon I tried to run some example code. Problem is, when I load the example code, I get a LOT of compiler errors. Here's the code:
/*
Button
Turns on and off the built-in LED when the built-in button is
pressed.
Ported to Maple from the Arduino example 27 May 2011
by Marti Bolivar
*/
void setup() {
// Initialize the built-in LED pin as an output:
pinMode(BOARD_LED_PIN, OUTPUT);
// Initialize the built-in button (labeled BUT) as an input:
pinMode(BOARD_BUTTON_PIN, INPUT);
}
void loop() {
// Check if the button is pressed.
if (isButtonPressed()) {
// If so, turn the LED from on to off, or from off to on:
toggleLED();
}
}
and here are my errors:
Going to build using 'armcompiler' (ARM)
Compiling core...
from [redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/stdlib.h:32,
from [redacted]maple-ide-0.0.12-windowsxp32\hardware\leaflabs\cores\maple\wirish_math.cpp:24:
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:102: error: '::div_t' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:103: error: '::ldiv_t' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:105: error: '::abort' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:106: error: '::abs' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:107: error: '::atexit' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:108: error: '::atof' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:109: error: '::atoi' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:110: error: '::atol' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:111: error: '::bsearch' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:112: error: '::calloc' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:113: error: '::div' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:114: error: '::exit' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:115: error: '::free' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:116: error: '::getenv' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:117: error: '::labs' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:118: error: '::ldiv' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:119: error: '::malloc' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:121: error: '::mblen' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:122: error: '::mbstowcs' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:123: error: '::mbtowc' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:125: error: '::qsort' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:126: error: '::rand' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:127: error: '::realloc' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:128: error: '::srand' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:129: error: '::strtod' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:130: error: '::strtol' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:131: error: '::strtoul' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:132: error: '::system' has not been declared
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib: In function 'long int std::abs(long int)':
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:139: error: 'labs' was not declared in this scope
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib: At global scope:
[redacted]maple-ide-0.0.12-windowsxp32\hardware\tools\arm\bin\../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/include/c++/4.4.1/cstdlib:141: error: 'ldiv_t' does not name a type
[redacted]maple-ide-0.0.12-windowsxp32\hardware\leaflabs\cores\maple\wirish_math.cpp: In function 'void randomSeed(unsigned int)':
[redacted]maple-ide-0.0.12-windowsxp32\hardware\leaflabs\cores\maple\wirish_math.cpp:29: error: 'srand' was not declared in this scope
[redacted]maple-ide-0.0.12-windowsxp32\hardware\leaflabs\cores\maple\wirish_math.cpp: In function 'long int random(long int)':
[redacted]maple-ide-0.0.12-windowsxp32\hardware\leaflabs\cores\maple\wirish_math.cpp:38: error: 'rand' was not declared in this scope
(The [redacted] portions are just the directory structure, censored because my username was visible.)