Closed Grey-Lancaster closed 1 year ago
LOL Error when compiling
are you solve this problem? I think the esp32-arduio libary maybe not incompatible this source code down date the version?
yes add @2.1.0 To use older releases, you need to specify the version in platformio.ini:
platform = espressif32@2.1.0
I'm assuming that you've found the solution so I'm closing this issue. Feel free to reopen if that's not the case.
PACKAGES:
~~~ c:\users\grey.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\xtensa-esp32-elf\no-rtti\bits\gthr-default.h:781:12: note: suggested alternative: 'pthread_mutex_trylock' In file included from c:\users\grey.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\xtensa-esp32-elf\no-rtti\bits\gthr.h:151, from c:\users\grey.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\ext\atomicity.h:35, from c:\users\grey.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\bits\basic_string.h:39, from c:\users\grey.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\string:52, from c:\users\grey.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\stdexcept:39, from c:\users\grey.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\array:39, from c:\users\grey.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\tuple:39, from c:\users\grey.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\functional:54, from .pio\libdeps\esp32dev\AsyncTCP\src\AsyncTCP.h:28, from .pio\libdeps\esp32dev\AsyncTCP\src\AsyncTCP.cpp:24: c:\users\grey.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\xtensa-esp32-elf\no-rtti\bits\gthr-default.h: In function 'int gthread_mutex_timedlock(gthread_mutex_t, const __gthread_time_t)': c:\users\grey.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\xtensa-esp32-elf\no-rtti\bits\gthr-default.h:781:12: error: 'pthread_mutex_timedlock' was not declared in this scope return _gthrw(pthread_mutex_timedlock) (mutex, __abs_timeout); ^~~~ c:\users\grey.platformio\packages\toolchain-xtensa-esp32\xtensa-esp32-elf\include\c++\8.4.0\xtensa-esp32-elf\no-rtti\bits\gthr-default.h:781:12: note: suggested alternative: 'pthread_mutex_trylock' [.pio\build\esp32dev\lib7e8\AsyncTCP\AsyncTCP.cpp.o] Error 1 [.pio\build\esp32dev\src\simple-webserver.cpp.o] Error 1