This repository was archived by the owner on Aug 1, 2024. It is now read-only.
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
config/platform/avr.hpp undefs F() macro #4
Open
Description
In the Arduino WString.h header, the F() macro is defined to allow strings to be put in flash (saving precious SRAM).
At the end of boost/config/platform/avr.hpp is the following snippet:
// Defined by arduino/wiring WString.h
#ifdef F
#undef F
#endif
This means that the F() macro no longer works, and produces compilation errors:
error: ‘F’ was not declared in this scope
What is the reason for undefining the macro? At the very least, the explicit reason why F() is undefined should be documented, and what to do about it if you need to use the F() macro
Metadata
Metadata
Assignees
Labels
No labels