Just to test gcc, I tried to compile this:

***test.c***
#include <stdio.h>
int main(int argc, char *argv[]) {
   printf("By Jove, it works!\n");
   return 0;
}
*** end file ***

with this:
gcc -o test test.c

And it didn't work.

I got this:

test.c:1: parse error before '.' token
In file included from /usr/include/bits/types.h:143,
                 from /usr/include/stdio.h:36,
                 from test.c:2:
/usr/include/bits/pthreadtypes.h:48: parse error before "size_t"
/usr/include/bits/pthreadtypes.h:51: parse error before "__stacksize"
In file included from /usr/include/_G_config.h:44,
                 from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from test.c:2:
/usr/include/gconv.h:72: parse error before "size_t"
/usr/include/gconv.h:85: parse error before "size_t"
/usr/include/gconv.h:94: parse error before "size_t"
/usr/include/gconv.h:170: parse error before "size_t"
/usr/include/gconv.h:173: parse error before '}' token
In file included from /usr/include/libio.h:32,
                 from /usr/include/stdio.h:72,
                 from test.c:2:
/usr/include/_G_config.h:47: field `__cd' has incomplete type
/usr/include/_G_config.h:50: field `__cd' has incomplete type
In file included from /usr/include/stdio.h:72,
                 from test.c:2:
/usr/include/libio.h:350: parse error before "size_t"
/usr/include/libio.h:359: parse error before "size_t"
/usr/include/libio.h:467: parse error before "_IO_sgetn"
/usr/include/libio.h:467: parse error before "size_t"
In file included from test.c:2:
/usr/include/stdio.h:281: parse error before "size_t"
/usr/include/stdio.h:288: parse error before "size_t"
/usr/include/stdio.h:319: parse error before "size_t"
/usr/include/stdio.h:323: parse error before "size_t"
/usr/include/stdio.h:491: parse error before "fread"
/usr/include/stdio.h:491: parse error before "size_t"
/usr/include/stdio.h:494: parse error before "fwrite"
/usr/include/stdio.h:494: parse error before "size_t"
/usr/include/stdio.h:506: parse error before "fread_unlocked"
/usr/include/stdio.h:506: parse error before "size_t"
/usr/include/stdio.h:508: parse error before "fwrite_unlocked"
/usr/include/stdio.h:508: parse error before "size_t"
test.c:7: parse error before "file"
test.c:8: parse error at end of input
/usr/include/gconv.h:172: warning: array `__data' assumed to have one element

I'm just trying to learn a bit about programming, though, so
perhaps I've done something terribly and obviously wrong?

Tony

http://www.School-Library.net
Read, Connect, Learn!


-
_____________________________________________________________
Select your own custom email address for FREE! Get [EMAIL PROTECTED] w/No Ads, 6MB, 
POP & more! http://www.everyone.net/selectmail?campaign=tag



-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@;redhat.com?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to