This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Solaris 2.6 Compilation Problem
- To: <gcc at gcc dot gnu dot org>
- Subject: Solaris 2.6 Compilation Problem
- From: "Manfred Wolter" <m-wolter at gmx dot de>
- Date: Sat, 15 Jul 2000 19:57:30 +0200
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