This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Solaris 2.6 Compilation Problem


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





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]