VS Code finding wrong system header files (uint32_t not defined)

User avatar
mzimmers
Posts: 643
Joined: Wed Mar 07, 2018 11:54 pm
Location: USA

VS Code finding wrong system header files (uint32_t not defined)

Postby mzimmers » Tue Nov 09, 2021 5:26 pm

Hi all -

Trying to use the IDE in Windows 10. I've configured my c_cpp_properties.json as follows:

Code: Select all

            "includePath": [
                "${config:idf.espIdfPath}/components/**",
                "${config:idf.espIdfPathWin}/components/**",
                "C:/Users/mzimmers/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/xtensa-esp32-elf/include",
                "C:/Users/mzimmers/.espressif/tools/xtensa-esp32-elf/esp-2021r1-8.4.0/xtensa-esp32-elf/lib/gcc/xtensa-esp32-elf/8.4.0/include/**",
                "${workspaceFolder}/**"
            ],
But I'm getting errors about "variable "uint32_t" is not a type name." I believe this is because it's finding the wrong stdint.h file, but I could be mistaken.

Does anyone have any suggestions on how to fix this? I can build using the command line, so the project is OK; it's something in how I've configured the IDE.

Thanks...

Who is online

Users browsing this forum: No registered users and 23 guests