Vim using Syntastic plugin 'mpi.h' not found -


i'm using vim 7.4 on ubuntu 16.04. have syntastic plugin installed via pathogen.

i'm doing coding in c using mpi library. when write code using vim, syntastic seems believe there error , tells me "'mpi.h' file not found" (this #include <mpi.h>). know program compiles i'm able run mpicc successfully.

when run locate mpi.h back:

/usr/lib/openmpi/include/mpi.h /usr/lib/openmpi/include/openmpi/ompi/mpi/fortran/mpif-h/prototypes_mpi.h /usr/src/linux-headers-4.4.0-62/include/linux/mpi.h /usr/src/linux-headers-4.4.0-66/include/linux/mpi.h 

how can vim stop giving me these errors?

create file .syntastic_cpp_config in project home folder. have include folders listed in it. in case,

-i/usr/lib/openmpi/include 

or other folder mpi.h, whichever use in build.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -