Skip to content

Standard library missing when using CMake to generate compile_commands.json #483

Closed Answered by beckettloose
beckettloose asked this question in Q&A
Discussion options

You must be logged in to vote

Looks like the root cause of my issue was clangd (the language server itself) not using gcc-arm's include directories. The solution was manually specifying the gcc-arm include directories in my .clangd file like this:

CompileFlags:
  Add:
    - -I/usr/local/gcc-arm/arm-none-eabi/include/c++/14.3.1
    - -I/usr/local/gcc-arm/arm-none-eabi/include/c++/14.3.1/arm-none-eabi
    - -I/usr/local/gcc-arm/arm-none-eabi/include

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@multiplemonomials
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by beckettloose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants