Hello,
The gcc compiler has been installed on a Sun machine, the version is 3.2.1.
When I try to compile the simplest possible program "hello.c", I get the following errors..... please help me !!! I don't know what to do and I am really stuck!!!
Thanks
# pg hello.c
#include <stdio.h>
main()
{
printf("\n"
printf("**************\n"
printf("*Hola a todos*\n"
printf("**************\n\n"
}
# gcc hello.c
In file included from hello.c:1:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:36:27: iso/stdio_iso.h: No such file or di
In file included from hello.c:1:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:194: parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:229: parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:230: parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:236: parse error before "size_t"
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:241: parse error before "size_t"
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:250: parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:252: parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:276: parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:285: parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:286: parse error before "FILE"
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:287: parse error before '*' token
# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/specs
Configured with: ../configure --disable-nls --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
Thread model: posix
gcc version 3.2.1
The gcc compiler has been installed on a Sun machine, the version is 3.2.1.
When I try to compile the simplest possible program "hello.c", I get the following errors..... please help me !!! I don't know what to do and I am really stuck!!!
Thanks
# pg hello.c
#include <stdio.h>
main()
{
printf("\n"
printf("**************\n"
printf("*Hola a todos*\n"
printf("**************\n\n"
}
# gcc hello.c
In file included from hello.c:1:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:36:27: iso/stdio_iso.h: No such file or di
In file included from hello.c:1:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:194: parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:229: parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:230: parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:236: parse error before "size_t"
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:241: parse error before "size_t"
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:250: parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:252: parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:276: parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:285: parse error before '*' token
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:286: parse error before "FILE"
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/include/stdio.h:287: parse error before '*' token
# gcc -v
Reading specs from /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/3.2.1/specs
Configured with: ../configure --disable-nls --with-as=/usr/ccs/bin/as --with-ld=/usr/ccs/bin/ld
Thread model: posix
gcc version 3.2.1