My program compiles fine, but within Vim (with CoC + clangd) I get the linting error: #include <omp.h> 'omp.h' file not found (clang pp_file_not_found)
I use bear -- make
as described in https://clangd.llvm.org/installation.html#project-setup, and it usually works for libraries I'm using.
With OpenMP, it creates this file:
[
{
"arguments": [
"/usr/bin/g++",
"-fopenmp",
"-Wall",
"-g",
"-I/usr/lib/gcc/x86_64-linux-gnu/4.8/include/",
"-c",
"proj03.cpp"
],
"directory": "/home/me/school/cs475/3",
"file": "/home/me/school/cs475/3/proj03.cpp"
}
]
Why does the error happen? What do I need to do to get clang to recognize OpenMP?