public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: Solaris 2.6 Compilation Problem
@ 2000-07-16  0:57 Manfred Wolter
  0 siblings, 0 replies; 3+ messages in thread
From: Manfred Wolter @ 2000-07-16  0:57 UTC (permalink / raw)
  To: GCC Liste

Thanks for your comment, Russ.

- Maybe there was a problem by transferring the source file from 
my Windoze-PC to my Solaris-Webserver. So I wrote the code
directly on the Server with pico.

Now I got the error

-------
bash-2.01# gcc -o anzahl1 anzahl1.c
collect2: ld terminated with signal 4 [Illegal Instruction]
bash-2.01#
-------

Sorry, this (me) is a compiler-newbie...


Manfred

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Solaris 2.6 Compilation Problem
  2000-07-15 10:55 Manfred Wolter
@ 2000-07-15 18:36 ` Russ Allbery
  0 siblings, 0 replies; 3+ messages in thread
From: Russ Allbery @ 2000-07-15 18:36 UTC (permalink / raw)
  To: Manfred Wolter; +Cc: gcc

Manfred Wolter <m-wolter@gmx.de> writes:

> As a first attempt I tried to compile the following simple code
> (anzahl.c)

[...]

> 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

gcc is saying that you have stray occurances of character 0240
(non-breaking space in ISO 8859-1, I believe) in your source file, which
are interfering with its ability to parse your code.

-- 
Russ Allbery (rra@stanford.edu)             < http://www.eyrie.org/~eagle/ >

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Solaris 2.6 Compilation Problem
@ 2000-07-15 10:55 Manfred Wolter
  2000-07-15 18:36 ` Russ Allbery
  0 siblings, 1 reply; 3+ messages in thread
From: Manfred Wolter @ 2000-07-15 10:55 UTC (permalink / raw)
  To: gcc

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




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-07-16  0:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-16  0:57 Solaris 2.6 Compilation Problem Manfred Wolter
  -- strict thread matches above, loose matches on Subject: below --
2000-07-15 10:55 Manfred Wolter
2000-07-15 18:36 ` Russ Allbery

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).