[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
HELP!!!!
From: |
Preeja PV |
Subject: |
HELP!!!! |
Date: |
Tue, 13 Feb 2001 06:33:31 -0800 (PST) |
sir,
we tried to compile a c program in the GNU compiler under LINUX OS.we
used the options
gcc -O2 -ansi -traditional -pedantic -Wall -Wshadow -Wpointer-arith -Wcast-qual
-Wcast-align -Wmissing-prototypes test.c.
SOURCE CODE:
/*test.c*/
#include<stdio.h>
int main(){
printf("hello");
return(0);
}
ERRORS:
In file included from /usr/include/stdio.h:40,
from test.c:3:
/usr/include/bits/types.h:49: syntax error before `char'
/usr/include/bits/types.h:51: syntax error before `short'
/usr/include/bits/types.h:53: syntax error before `int'
/usr/include/bits/types.h:56: syntax error before `long'
In file included from /usr/include/stdio.h:57,
from test.c:3:
/usr/include/libio.h:219: parse error before `signed'
/usr/include/libio.h:219: warning: no semicolon at end of struct or union
/usr/include/libio.h:237: parse error before `}'
/usr/include/libio.h:237: warning: ANSI C does not allow extra `;' outside of a
function
we kindly request you to help us in solving this problem.Looking forward for
your earliest reply.
thanking you,
yours sincerly,
Prince George.
=====
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/
[Prev in Thread] |
Current Thread |
[Next in Thread] |