Hi All,
I am stuck with this simple code that uses #error
No exe is form and stupid gcc giving following error.
Pls help me out
-----------------------------------------------------------------
#include<stdio.h>
int main(void)
{
printf("BUG :::::::::::::::::::: %s : %d",__FILE__,__LINE__);
#error "Failed to inialize"
return 0;
}
----------------------------------------------------------------
OUTPUT
$ gcc a.c
a.c:6:10: #error "Failed to inialize"
a.c: In function `main':
a.c:4: warning: return type of `main' is not `int'
a.c:7:2: warning: no newline at end of file
-----------------------------------------------------------------