Error__GLIBC_USE' is not defined when compiling cpp

Dig Kleppe
Posts: 26
Joined: Wed Jun 28, 2017 5:03 pm

Error__GLIBC_USE' is not defined when compiling cpp

Postby Dig Kleppe » Thu Jul 11, 2024 1:43 pm

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.

aliarifat794
Posts: 200
Joined: Sun Jun 23, 2024 6:18 pm

Re: Error__GLIBC_USE' is not defined when compiling cpp

Postby aliarifat794 » Thu Jul 11, 2024 3:51 pm


Dig Kleppe
Posts: 26
Joined: Wed Jun 28, 2017 5:03 pm

Re: Error__GLIBC_USE' is not defined when compiling cpp

Postby Dig Kleppe » Thu Jul 11, 2024 5:41 pm

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

Who is online

Users browsing this forum: No registered users and 118 guests