Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DigKleppe opened this issue Jul 13, 2024 · 0 comments
Open

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

DigKleppe opened this issue Jul 13, 2024 · 0 comments
Assignees

Comments

@DigKleppe
Copy link

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.

@github-actions github-actions bot changed the title Error__GLIBC_USE' is not defined when compiling cpp Error__GLIBC_USE' is not defined when compiling cpp (IEP-1295) Jul 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants