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

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -