Cannot find a file included in the freertos library - reent.h.
I get a compiler warning and sometimes cannot build/flash the ESP32 part.
Using VSCode to build a project on Ubuntu 18.0.4.
Very annoying - could anyone help out.
freertos
Re: freertos
I'm having the exact same problem. Any progress on this?
Regards
Regards
Re: freertos
Just found a suggested solution in this forum: viewtopic.php?f=40&t=17818&p=66817&hilit=reent#p66817
But it does not work for me.
But it does not work for me.
Re: freertos
What's your c_cpp_properties.json look like?
Re: freertos
It looks like this:
But the sys/reent.h cannot be found in any of the (sub)directories. In fact I did not find it on my system. I'm using esp-idf 4.2. I guess the include was added to FreeRTOS.h in a recent release.
- {
- "configurations": [
- {
- "name": "ESP",
- "cStandard": "c11",
- "cppStandard": "c++17",
- "includePath": [
- "${workspaceFolder}/**",
- "${config:idf.espIdfPath}/components/**"
- ],
- "browse": {
- "path": [
- "${config:idf.espIdfPath}/components",
- "${config:idf.espIdfPathWin}/components",
- "${workspaceFolder}"
- ],
- "limitSymbolsToIncludedHeaders": false
- }
- }
- ],
- "version": 4
- }
But the sys/reent.h cannot be found in any of the (sub)directories. In fact I did not find it on my system. I'm using esp-idf 4.2. I guess the include was added to FreeRTOS.h in a recent release.
Re: freertos
Try add the following (at same depth as "name"):
Check compilerPath is correct, you may have a different version.
Code: Select all
"compilerPath": "${config:idf.toolsPath}/tools/xtensa-esp32-elf/esp-2020r3-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc",
"compileCommands": "${workspaceFolder}/build/compile_commands.json"
Re: freertos
That helped. Thank you very much.
Who is online
Users browsing this forum: Baidu [Spider] and 129 guests