c - include <signal.h> error, library is missing -
i trying compile code uses these libraries on ubuntu
#include <stdio.h> #include <stdlib.h> #include <signal.h> #include <unistd.h>
but compiler returned error
sig.c:3:9: error: #include expects "filename" or <filename> #include <signal.h> ^
also unistd.h
is there way fix without reinstalling ubuntu?
the compiler reporting syntax error, not missing header. code in question looks correct, there must strange characters you're not seeing, perhaps looks <
character or space isn't.
try typing
head foo.c | cat -a
at shell prompt; show what's in source file. (substitute actual file name foo.c
, of course.)
Comments
Post a Comment