Errors using fmt component
Posted: Mon Oct 16, 2023 2:20 am
Hi everyone, I'v been trying to use a faster alternative to sprintf and came across the fmt library, which can be added as a component from here: https://components.espressif.com/compon ... ressif/fmt
I haven't been able to compile the code; I seem to be missing some libraries:
Currently I'm using ESP-IDF v5.2-dev-823-g903af13e84-dirty
I don't know whether these libraries should be included in ESP-IDF or should come with my linux distribution.
Thanks
I haven't been able to compile the code; I seem to be missing some libraries:
- In file included from /projects/analog_read/one_shot_ADC/main/one_shot_ADC.c:15:
- /projects/analog_read/one_shot_ADC/managed_components/espressif__fmt/fmt/include/fmt/format.h:36:10: fatal error: cmath: No such file or directory
- 36 | #include <cmath> // std::signbit
- | ^~~~~~~
- compilation terminated.
- ninja: build stopped: subcommand failed.
I don't know whether these libraries should be included in ESP-IDF or should come with my linux distribution.
Thanks