Deous / VSC-Guide-for-esp32

This is a guide showing how to setup esp32 freeRTOS project on Windows
139 stars 46 forks source link

Default compiler includes are not resolved #5

Open Race666 opened 5 years ago

Race666 commented 5 years ago

The default include path from the compiler would not be resolved, therefore all header files for example

include

are marked as not found.

Solution: Add the compiler path option to the configuration section. For example Windows:

 "configurations": [
        {
            "name": "ESP32-Win",
            "compilerPath": "D:/tools/esp-toolchain/msys32/opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc.exe",
...