Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Find shared/library headers #2411

Open
MatheusFarias03 opened this issue Dec 6, 2022 · 1 comment
Open

Find shared/library headers #2411

MatheusFarias03 opened this issue Dec 6, 2022 · 1 comment

Comments

@MatheusFarias03
Copy link

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?

@lcd047
Copy link
Collaborator

lcd047 commented Dec 6, 2022

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants