[cs631apue] Confusing with header files
yluo4
yluo4 at stevens.edu
Tue Sep 24 10:44:56 EDT 2013
On 09/23/2013 11:47 PM, kwang9 wrote:
> Dear all,
>
> I have these files,
>
> common.h:
> #include <sys/types.h>
> #include <sys/stat.h>
> #include <unistd.h>
> ...
>
> print.h:
> #include "common.h"
> ...
>
> print.c:
> ...
> ...S_IFMT...
> ...
>
> It compiles fine on my Mac, while ERROR! on linux-lab:
> error: ‘S_IFMT’ undeclared (first use in this function)
>
> Could anyone tell my why please...
>
> Sincerely,
> Kai
>
>
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue
Do you include "print.h" in print.c?
More information about the cs631apue
mailing list