Hello there
I recently installed the 3.0.0 alpha2 library for arduino ide on windows 10 to try ESP32C6.
But when i want to compile my old programs for ESP32 (not c3, c6, s3...) the ide gives many compilation errors.
If i unisntall the 3.0.0 alpha2 and reinstall 2.0.14, all is OK.
Does any one of you have a solution ?
Thanks
Compilation issues with 3.0.0 alpha2 library for arduino ide
Re: Compilation issues with 3.0.0 alpha2 library for arduino ide
To complete my last post, the issues occurred with 'ESPnow' and 'ESP32Servo' libraries.
FB
FB
Re: Compilation issues with 3.0.0 alpha2 library for arduino ide
Here are the error messages i get :
/home/franck/Documents/Programmation/ESP32/ESP_Now/ESP_NOW_01_Rx/ESP_NOW_01_Rx.ino: In function 'void setup()':
/home/franck/Documents/Programmation/ESP32/ESP_Now/ESP_NOW_01_Rx/ESP_NOW_01_Rx.ino:58:28: error: invalid conversion from 'void (*)(const uint8_t*, const uint8_t*, int)' {aka 'void (*)(const unsigned char*, const unsigned char*, int)'} to 'esp_now_recv_cb_t' {aka 'void (*)(const esp_now_recv_info*, const unsigned char*, int)'} [-fpermissive]
58 | esp_now_register_recv_cb(OnDataRecv);
| ^~~~~~~~~~
| |
| void (*)(const uint8_t*, const uint8_t*, int) {aka void (*)(const unsigned char*, const unsigned char*, int)}
In file included from /home/franck/Documents/Programmation/ESP32/ESP_Now/ESP_NOW_01_Rx/ESP_NOW_01_Rx.ino:12:
/home/franck/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-6b1f40b9bf/esp32/include/esp_wifi/include/esp_now.h:156:54: note: initializing argument 1 of 'esp_err_t esp_now_register_recv_cb(esp_now_recv_cb_t)'
156 | esp_err_t esp_now_register_recv_cb(esp_now_recv_cb_t cb);
| ~~~~~~~~~~~~~~~~~~^~
exit status 1
Compilation error: invalid conversion from 'void (*)(const uint8_t*, const uint8_t*, int)' {aka 'void (*)(const unsigned char*, const unsigned char*, int)'} to 'esp_now_recv_cb_t' {aka 'void (*)(const esp_now_recv_info*, const unsigned char*, int)'} [-fpermissive]
/home/franck/Documents/Programmation/ESP32/ESP_Now/ESP_NOW_01_Rx/ESP_NOW_01_Rx.ino: In function 'void setup()':
/home/franck/Documents/Programmation/ESP32/ESP_Now/ESP_NOW_01_Rx/ESP_NOW_01_Rx.ino:58:28: error: invalid conversion from 'void (*)(const uint8_t*, const uint8_t*, int)' {aka 'void (*)(const unsigned char*, const unsigned char*, int)'} to 'esp_now_recv_cb_t' {aka 'void (*)(const esp_now_recv_info*, const unsigned char*, int)'} [-fpermissive]
58 | esp_now_register_recv_cb(OnDataRecv);
| ^~~~~~~~~~
| |
| void (*)(const uint8_t*, const uint8_t*, int) {aka void (*)(const unsigned char*, const unsigned char*, int)}
In file included from /home/franck/Documents/Programmation/ESP32/ESP_Now/ESP_NOW_01_Rx/ESP_NOW_01_Rx.ino:12:
/home/franck/.arduino15/packages/esp32/tools/esp32-arduino-libs/idf-release_v5.1-6b1f40b9bf/esp32/include/esp_wifi/include/esp_now.h:156:54: note: initializing argument 1 of 'esp_err_t esp_now_register_recv_cb(esp_now_recv_cb_t)'
156 | esp_err_t esp_now_register_recv_cb(esp_now_recv_cb_t cb);
| ~~~~~~~~~~~~~~~~~~^~
exit status 1
Compilation error: invalid conversion from 'void (*)(const uint8_t*, const uint8_t*, int)' {aka 'void (*)(const unsigned char*, const unsigned char*, int)'} to 'esp_now_recv_cb_t' {aka 'void (*)(const esp_now_recv_info*, const unsigned char*, int)'} [-fpermissive]
Who is online
Users browsing this forum: Majestic-12 [Bot] and 71 guests