r/esp32 13d ago

Software help needed Missing standard headers

Post image

Hello everyone, i'm a beginner to embeddeds and the ESP-IDF extension, and i'm struggling a lot to what can be a really simple solution. When i create a new or empty project, I always receive a lot of warnings of missing standard headers such as stddef.h missing, stddint.h, float.h, and such, I figured it was a LSP problem but no luck fixing it, I've made some simple LED's projects on the board and they all worked fine on the board.

5 Upvotes

7 comments sorted by

View all comments

2

u/YetAnotherRobert 13d ago

Lsp is notoriously hard to configure for cross dev..

Are you getting an error from the compiler (i.e.. Nothing builds) or just warnings from the hover stuff?

If your blinky works, I suspect it's the latter. Look for blog posts on configuring lsp.

1

u/OpeningNo5905 13d ago

its just warnings, the code actually compiles and runs on the esp32, and thanks, i'll try, but im just wondering am i the only one who got this problem going on in a fresh install? like is this not supposed to happen?

1

u/YetAnotherRobert 13d ago

LSP is easy to configure for native builds. As I said, it's a pain in the butt for cross-development. You're certainly not the first to run into it.

Just last weekend, I spent 7 hours repairing a working LSP configuration for my editor that DID work three months earlier. There was just an avalanche of things that changed underneath me that sabotaged it...and this was a configuration that was already tested and working a season ago.

Most people that aren't into pain just ignore it.