Atom will not recognize my .h file in my .c code


#1

Hello,

I’m fairly new to writing C code, so I’m not really sure where to start for the issue here. I have a .c file (a6.c) and a header file (a6Defs.c) in the same directory. When I try to include it into my a6.c file, as follows:

#include "a6Defs.h"

I get an error: “a6Defs.h: No such file or directory.” but I am able to make references to other functions that are in a6Defs.h while in a6.c. Can anyone please provide some insight on this issue?

Thanks and sorry if this ends up being not the correct place to post this.


#2

Oops, I meant a6Defs.h and not a6Defs.c. Apologies.


#3

Have you followed the suggestions in the Debugging document? Most specifically, can you reproduce the issue in Safe Mode?

The reason why I ask is that Atom itself doesn’t care if you type your code wrong. You must have a community package installed that is looking at your code and displaying this error. What packages have you installed that analyze your code?


#4

You’re right, I actually found the solution to my issue here: https://github.com/hebaishi/linter-gcc/issues/61.
Thanks so much for the reply!