Page 1 of 1

Error__GLIBC_USE' is not defined when compiling cpp

Posted: Thu Jul 11, 2024 1:43 pm
by Dig Kleppe
An (editor) error is generated at line:

Code: Select all

#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

With old IDE 2.12.1 no errors.

Re: Error__GLIBC_USE' is not defined when compiling cpp

Posted: Thu Jul 11, 2024 3:51 pm
by aliarifat794

Re: Error__GLIBC_USE' is not defined when compiling cpp

Posted: Thu Jul 11, 2024 5:41 pm
by Dig Kleppe
No succes.
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.
Dig