Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2004-07

Output file.

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author

Hello,

I have a Mac computer (OSX 10.2.8), and i downloaded the Free Pascal Compiler 1.9.4.dmg.

I manage to compile a source file, but unfortunately i can't get the result of the work. For instance, here is the programm that i wrote:
--------------------------------------
program SUITE;
var n:integer;
begin

     n:=1;
     write ('le resultat est', n);

end.
--------------------------------------
When i try to complie tis programm i get
the following:
[Ordinateur-de-Geoffroy-Derome:~] derome% fpc suite.tex Free Pascal Compiler version 1.9.4 [2004/05/30] for powerpc Copyright (c) 1993-2004 by Florian Klaempfl
Target OS: Darwin for PowerPC
Compiling suite.tex
Assembling suite
Linking suite
/usr/bin/ld: can't use -s with input files containg indirect symbols (output file must contain at least global symbols, for maximum stripping use -x)
7 Lines compiled, 0.4 sec
[Ordinateur-de-Geoffroy-Derome:~] derome%
----------------------------------------
A file suite.o has been creating in home/derome, but i get things like #&é#$*%£ when i try to open it.

Can you please help me ?

Thanks in advance.

Best.

G.D.

Jonas Maebe
to Unknown author
Show quoted text 22 lines
-------------------------------------- program SUITE; var n:integer; begin n:=1; write ('le resultat est', n); end. -------------------------------------- When i try to complie tis programm i get the following: [Ordinateur-de-Geoffroy-Derome:~] derome% fpc suite.tex Free Pascal Compiler version 1.9.4 [2004/05/30] for powerpc Copyright (c) 1993-2004 by Florian Klaempfl Target OS: Darwin for PowerPC Compiling suite.tex Assembling suite Linking suite /usr/bin/ld: can't use -s with input files containg indirect symbols (output file must contain at least global symbols, for maximum stripping use -x) 7 Lines compiled, 0.4 sec

This is due to a bug in the Mac OS X linker which I didn't know about until after 1.9.4 was released. You can work around it by doing the following in a Terminal window:

cp /etc/fpc.cfg ~/.fpc.cfg
pico ~/.fpc.cfg

and then remove the line containing "-Xs" from this file and save it.

Jonas

PS: please mention it if you're not subscribed to the mailing list (or if you are subscribed, please post from the address with which you are subscribed).