Closed hero closed 1 year ago
This library is written in C++ and cannot be included from *.c
source.
@hero
Your ESP-IDF main function should look like this and in a .cpp
file to use C++
.
extern "C" void app_main(void)
{
}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. Thank you for your contributions.
Carefully written requests are more likely to be given priority. I tried to use this library to drive SSD1351 OLED in my ESP32-S3 project, but the compilation failed! My compile condition:
Many errors like:
1) LovyanGFX/src/lgfx/v1/platforms/esp32/../../Light.hpp:22:1: error: unknown type name 'namespace' namespace lgfx ^
~~~~ 2)error: expected '=', ',', ';', 'asm' or 'attribute' before 'lgfx' using namespace lgfx::jpeg_div; ^~~~ 3)error: unknown type name 'using'; did you mean 'ulong'? using namespace lgfx::colors; ^~~~~ 4)LovyanGFX/src/lgfx/v1/platforms/esp32/../esp32/../../../utility/../internal/memory.h:13:10: fatal error: memory: No such file or directoryinclude
compilation terminated.