Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling for board Teensy 4.1 #5

Open
jmodj opened this issue Jan 3, 2022 · 0 comments
Open

Error compiling for board Teensy 4.1 #5

jmodj opened this issue Jan 3, 2022 · 0 comments

Comments

@jmodj
Copy link

jmodj commented Jan 3, 2022

Arduino: 1.8.15 (Mac OS X), TD: 1.54, Board: "Teensy 4.1, Serial, 600 MHz, Faster, US English"

In file included from /var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:26:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In constructor 'SerialMenuEntry::SerialMenuEntry(const char*, bool, char, void ()())':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:188:16: warning: 'SerialMenuEntry::key' will be initialized after [-Wreorder]
const char key;
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:180:28: warning: 'void (
SerialMenuEntry::actionCallback)()' [-Wreorder]
void (actionCallback)();
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:192:5: warning: when initialized here [-Wreorder]
SerialMenuEntry(const char * m, bool isprogMem, char k, void (c)()) :
^
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino: In lambda function:
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:55:52: warning: passing 'const SerialMenu' as 'this' argument discards qualifiers [-fpermissive]
{ x = menu.getNumber<uint16_t>("Input x = "); }
^
In file included from /var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:26:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:373:14: note: in call to 'T SerialMenu::getNumber(const char
) [with T = short unsigned int]'
inline T getNumber(const char * const message = nullptr)
^
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino: In lambda function:
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:61:49: warning: passing 'const SerialMenu' as 'this' argument discards qualifiers [-fpermissive]
{ f = menu.getNumber("Input f = "); }
^
In file included from /var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:26:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:373:14: note: in call to 'T SerialMenu::getNumber(const char
) [with T = float]'
inline T getNumber(const char * const message = nullptr)
^
demo1: In function 'void setup()':
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:89:35: warning: passing 'const SerialMenu' as 'this' argument discards qualifiers [-fpermissive]
menu.load(mainMenu, mainMenuSize);
^
In file included from /var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:26:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:320:17: note: in call to 'void SerialMenu::load(const SerialMenuEntry*, uint8_t)'
inline void load(const SerialMenuEntry* array, uint8_t arraySize)
^
demo1: In function 'void loop()':
/var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:94:15: warning: passing 'const SerialMenu' as 'this' argument discards qualifiers [-fpermissive]
menu.run(100);
^
In file included from /var/folders/7n/4rg6bhnn00l7_c8qck52wyf40000gn/T/arduino_modified_sketch_581204/demo1.ino:26:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:440:10: note: in call to 'bool SerialMenu::run(uint16_t)'
bool run(const uint16_t loopDelayMs)
^
In file included from /Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.cpp:8:0:
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In constructor 'SerialMenuEntry::SerialMenuEntry(const char*, bool, char, void ()())':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:188:16: warning: 'SerialMenuEntry::key' will be initialized after [-Wreorder]
const char key;
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:180:28: warning: 'void (
SerialMenuEntry::actionCallback)()' [-Wreorder]
void (*actionCallback)();
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:192:5: warning: when initialized here [-Wreorder]
SerialMenuEntry(const char * m, bool isprogMem, char k, void (c)()) :
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In constructor 'SerialMenu::SerialMenu()':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:278:7: error: 'Serial' was not declared in this scope
Serial.begin(9600);
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In member function 'void SerialMenu::show() const':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:357:11: error: 'Serial' was not declared in this scope
Serial.println(menu[i].getMenu());
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In member function 'char SerialMenu::getChar()':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:366:15: error: 'Serial' was not declared in this scope
while (!Serial.available());
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:367:14: error: 'Serial' was not declared in this scope
return Serial.read();
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In member function 'T SerialMenu::getNumber(const char
)':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:381:9: error: 'Serial' was not declared in this scope
Serial.print(message);
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:386:15: error: 'Serial' was not declared in this scope
while (!Serial.available());
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:387:11: error: 'Serial' was not declared in this scope
c = Serial.read();
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp: In member function 'bool SerialMenu::run(uint16_t)':
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:442:39: error: 'Serial' was not declared in this scope
const bool userInputAvailable = Serial.available();
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:453:14: error: in argument to unary !
if (!userInputAvailable)
^
/Users/jmo/Documents/Arduino/libraries/SerialMenu/src/SerialMenu.hpp:480:12: error: in argument to unary !
if (!userInputAvailable)
^
Error compiling for board Teensy 4.1.

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant