Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7747

SDK • VSCode creating empty compile_commands.json file

$
0
0
I seem to have broken something in VSCode, running on an Intel Mac.

If I create a new project, whether from an example, or directly, I end up with an essentially null compile_commands.json in the build directory and programs won't compile because the compiler cannot find header files.

If I copy in a compile_commands.json file from an existing program and correct all the names to the new program, compile appears to work and binaries are produced.

What do I need to do to get VSCode to create correct compile_commands.json files? I have tried removing and reloading VSCode, but the problem persists.

Statistics: Posted by EDSAC — Sun May 31, 2026 8:30 pm



Viewing all articles
Browse latest Browse all 7747

Latest Images

Trending Articles



Latest Images