idf-eclipse-plugin icon indicating copy to clipboard operation
idf-eclipse-plugin copied to clipboard

Error__GLIBC_USE' is not defined when compiling cpp (IEP-1295)

Open DigKleppe opened this issue 1 year ago • 0 comments

An (editor) error is generated at line: #include "freertos/FreeRTOS.h

In included file: function-like macro '__GLIBC_USE' is not defined /usr/include/limits.h:145:5: note: error occurred here

This happens with .cpp files. c files OK. The code builds OK. I am using Espressif IDE 3.0.0 Build id: 20240605-1941, IDF 5.1.4

I removed version 3 of the plugin and installed version 2.12 manually with the LSP preview enabled. Works OK. I can use the LSP editor here without problems. Unfortunately i have to do this every time i open a file. The default editor setting preference does nothing.

To reproduce: add a .cpp file to hello_world example with the include.

DigKleppe avatar Jul 13 '24 13:07 DigKleppe