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

After defining MENU_DEBUG project doesn't compile for ESP32 #426

Open
ScruffR opened this issue Sep 10, 2023 · 0 comments
Open

After defining MENU_DEBUG project doesn't compile for ESP32 #426

ScruffR opened this issue Sep 10, 2023 · 0 comments

Comments

@ScruffR
Copy link

ScruffR commented Sep 10, 2023

I need to debug the library but cannot get it to compile on my Adafruit HUZZAH32 Feather.

I first had this

#define ARDUINO_STREAMING           // import: Streaming library (v6.1.1)
#define MENU_DEBUG
#define MENU_DEBUG_OUT Serial

Which threw some errors

.../itemsTemplates.hpp:149:42: error: 'endl' was not declared in this scope
     _trace(Serial<<"toggle sysHandler!"<<endl;);

so I added

#define endl           "\r\n"

which got rid of the above error but ended up failing to link due to errors like these

undefined reference to `Menu::print_P(Print&, char const*, short)'
undefined reference to `Menu::operator<<(Print&, bool)'

(in multiple functions)

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