In included file: 'stdlib.h' file not found

I uninstalled all gcc-8 and 9 packages and stdlibs, so I think I’ve eliminated that oddity BUT I still have the original error (stdlib.h not found). That said, I can get the error to change to some other missing header file by moving things around in the command line in the DB. This is a huge project (LOTS of sources and include paths) and it’s just really challenging to figure out what’s setting clangd off course. Could be pragmas, bad include paths, conflicting files…we have all those things and more in a large code-base. I’ll keep digging around, but I suspect the only way I’m going to be able to use clangd is with heuristic/approximate command lines that perhaps make some simplifying assumptions. That’s ultimately less accurate, but at least it gets you something that works.

Thanks for your help - I’ll keep digging into it as time permits.