Solaris 2.6 Compilation Problem
Manfred Wolter
m-wolter@gmx.de
Sat Jul 15 10:55:00 GMT 2000
Hello,
I'm trying to compile some simple C-files but didn't succeed yet.
My System: Sun Sparc 10 / Solaris2.6 / gcc-Binary from
www.sunfreeware.com.
As a first attempt I tried to compile the following simple code
(anzahl.c)
-----------
#include <stdio.h>
int main ( void )
{
int anzahl;
anzahl=100;
printf ("\nAnzahl = %d \n",anzahl);
}
-----------
After typing in 'gcc anzahl.c' I got the following errors:
bash-2.01# gcc anzahl.c
anzahl.c:1: parse error before character 0240
In file included from anzahl.c:2:
/usr/include/stdio.h:261: parse error before `__va_list'
/usr/include/stdio.h:262: parse error before `__va_list'
/usr/include/stdio.h:265: parse error before `__va_list'
/usr/include/stdio.h:267: parse error before `__va_list'
anzahl.c:3: parse error before character 0240
anzahl.c:8: warning: data definition has no type or storage class
anzahl.c:8: parse error before character 0240
----------
Has anybody a helping idea ?
Manuel Wolter
More information about the Gcc
mailing list