You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I found another issue regarding this exact problem I am experiencing. #142
I am using platformio 6.7.0 with esp32-s3-devkitc-1 and -std=c++11.
This is the error I am getting
In file included from .pio/libdeps/esp32-s3-devkitc-1/AsyncTCP/src/AsyncTCP.h:29, from src/StompSubscribeClient.h:9, from src/StompSubscribeClient.cpp:1: /Users/sergioarrighi/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/freertos/include/freertos/semphr.h:31:6: error: #error "include FreeRTOS.h" must appear in source files before "include semphr.h"
The workaround I found is to do exactly what it said.
In AsyncTPC.h I added the include instruction.
You should #include "freertos/FreeRTOS.h", though why you are getting this error is unclear to me. Maybe there is another FreeRTOS.h that is messing up compilation?
Hello,
I found another issue regarding this exact problem I am experiencing.
#142
I am using platformio 6.7.0 with esp32-s3-devkitc-1 and -std=c++11.
This is the error I am getting
In file included from .pio/libdeps/esp32-s3-devkitc-1/AsyncTCP/src/AsyncTCP.h:29, from src/StompSubscribeClient.h:9, from src/StompSubscribeClient.cpp:1: /Users/sergioarrighi/.platformio/packages/framework-arduinoespressif32/tools/sdk/esp32s3/include/freertos/include/freertos/semphr.h:31:6: error: #error "include FreeRTOS.h" must appear in source files before "include semphr.h"
The workaround I found is to do exactly what it said.
In AsyncTPC.h I added the include instruction.
#include "IPAddress.h" #include "sdkconfig.h" #include <FreeRTOS.h> #include <functional> extern "C" { #include "freertos/semphr.h" #include "lwip/pbuf.h" }
Let me know if I should open a PR.
Thanks for the terrific job.
Best regards
The text was updated successfully, but these errors were encountered: