math.h file not found #4069
Replies: 3 comments
-
The same happens with |
Beta Was this translation helpful? Give feedback.
-
I tried to sort it out again this evening. No success.
The exact linted error is |
Beta Was this translation helpful? Give feedback.
-
I found this old discussion in my inbox. For C and C++ projects, they can be more difficult to configure because there are pretty much no standards for C and C++ projects. When the compiler can't find standard library files, that usually means My recommendation for all C and C++ projects is to use CMake to set them up with |
Beta Was this translation helpful? Give feedback.
-
I am happily using
ALE
for developingC
code but I have a problem that I cannot get rid off:math.h file not found
error.My setup is as follows: I build the software on a Docker image (that has its own
/usr/include
and the software perfectly builds) but I develop the code locally where I have all myvim
's the bells & whistles. I am not allowed to install myvim
with all the bells & whistles on the Docker image.However, when I edit some
.c
file I getmath.h file not found
error BUT I have a local/usr/include
folder. 😄Hence, to circumnavigate the issue, I added
let g:ale_c_cppcheck_options = '--enable=style -I /usr/include'
to my.vimrc
but the problem is not solved. I also tried withlet g:ale_c_cppcheck_options = '--enable=style -isystem /usr/include'
but... nothing changed.Inspection of
ALEInfo
looks OK.How to fix?
Beta Was this translation helpful? Give feedback.
All reactions