Direct @direct.wtf · May 5

Does anyone have any idea why clangd insists on importing a header from "src/" rather than the relative directory? The file which needs to include this is in the "src/" directory already.

1 likes 1 replies

?

Replies

Ewen McNeill · May 5

By historical Unix convention, an include in double quotes ("...") is located relative to the current working directory (when you compile), and an include in angle brackets (<...>) searches the (system) include path. Historically neither searched "the directory with the source file" by default.