Compilation issues with 3.0.0 alpha2 library for arduino ide

fbigrat
Posts: 5
Joined: Tue Nov 28, 2023 2:31 pm

Compilation issues with 3.0.0 alpha2 library for arduino ide

Postby fbigrat » Thu Nov 30, 2023 9:04 pm

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

fbigrat
Posts: 5
Joined: Tue Nov 28, 2023 2:31 pm

Re: Compilation issues with 3.0.0 alpha2 library for arduino ide

Postby fbigrat » Fri Dec 01, 2023 7:59 am

To complete my last post, the issues occurred with 'ESPnow' and 'ESP32Servo' libraries.
FB

fbigrat
Posts: 5
Joined: Tue Nov 28, 2023 2:31 pm

Re: Compilation issues with 3.0.0 alpha2 library for arduino ide

Postby fbigrat » Fri Dec 01, 2023 8:12 am

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]

Who is online

Users browsing this forum: Bing [Bot] and 81 guests