syntastic icon indicating copy to clipboard operation
syntastic copied to clipboard

Find shared/library headers

Open MatheusFarias03 opened this issue 2 years ago • 1 comments

Hello! I was using vim to see some source code files in the PostgreSQL-11-17 directory when I saw that syntastic was giving an error: parse_cte.c|15 col 10 error| fatal error: 'postgres.h' file not found.

This happened is some files under the postgresql-11.17/src/backend/parser directory. But with further inspection, I found that it indeed had a postgres.h file under postgresql-11.17/include.

Why does syntastic gives an error whilst having a file which it gives as not having? Is there an option that I can make it recognize it?

MatheusFarias03 avatar Dec 06 '22 02:12 MatheusFarias03

Why does syntastic gives an error whilst having a file which it gives as not having?

Because you didn't configure it for your project.

Is there an option that I can make it recognize it?

There is (it's described in the manual), but you probably shouldn't go there. First, syntastic was meant as a generic framework for linters, and it's unnecessarily awkward for languages such as C/C++. There are specialized plugins (such as YCM) that do a much better job for C/C++. And second, syntastic is dead, you should consider switching to something like ALE instead.

lcd047 avatar Dec 06 '22 03:12 lcd047