gpc linking problem_(re)

Thu, 30 Jan 1997 15:12:00 +0100 (MET)


> I wrote the hello world program.
> begin
>    writeln('Hello World');
> end. 
> 
> I compiled it with 
>   gpc -o hello hello.pas
> and it Worked!!
> But when i tried to compile it with
>   gpc -c hello.pas     <- this worked
>   gpc -o hello hello.o <- this crashed with a SIGSEGV .....
> it crashed when linking.
> What's the problem? 
> ( I tried the -v option, and it seems as if some of the temporary files,
> where not linked in )

Is it a ld-Problem? I've just tried it, but it works very well.

Here is my system-info:

reality:~/pascal$ gpc -v
Reading specs from /usr/lib/gcc-lib/i486-unknown-linux/2.7.2.1.f.1/specs
gpc version 2.0(2.7.2.1.f.1)
reality:~/pascal$ ld -v
ld version 2.7 (with BFD 2.7.0.3)

Ok, this is the gcc with the g77 compiler. I've sent some patches to Jan-Jaap
and they will be added to the FAQ. (In fact it's only in the file toplev.c
where some options were added.)

Bye, Nils

-- 
Nils Bokermann      
Johanneswerkstr. 90        Phone: +49 521 891279
33613 Bielefeld            FAX:   +49 521 550116
Germany			   "Wir wollen die Natur nicht erhalten --
			   Wir wollen nur ihre Dynamik nicht st"oren."
_______________________________________________________________________________


Nils Bokermann (nilsb@reality.owl.de)

HTML conversion by Lluís de Yzaguirre i Maura
Institut de Lingüística Aplicada - Universitat "Pompeu Fabra"
e-mail: de_yza@upf.es