Sign in Join

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

Mailing lists / fpc-devel / 2008-02

Free Pascal problem

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Chris Handley

Hi,

My old Code Warrior pascal is no longer compatible with MAC OS 10.5 :- (. I have installed free pascal, but it failed :-(.

Here is the code:

******************************************
program test (input, output);
begin
writeln('Note that for the time being, this will have to be compiled
using free pascal');
end.
****************************************

Here is the output:

******************************
Free Pascal Compiler version 2.2.1 [2007/10/30] for i386 Copyright (c) 1993-2007 by Florian Klaempfl
Target OS: Darwin for i386
Compiling HelloWorld.p
Assembling test
Linking HelloWorld
/usr/bin/ld: /usr/lib//libc.dylib unknown flags (type) of section 6 (__TEXT,__dof_plockstat) in load command 0
Error: Error while linking
Fatal: There were 1 errors compiling module, stopping Fatal: Compilation aborted
Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you did not specify a source file to be compiled)
********************************

What did I do wrong? I suspect that it is something trivial.

=
=
=
=
======================================================================== Dr Chris Handley
Dept of Computer Science Ph (+64) 3-479-8499
University of Otago Fax (+64) 3-479-8529
PO Box 56, Dunedin, 9054
New Zealand
____________________________________________________________________________ No drug, not even alcohol, causes the fundamental ills of society. If we're
looking for the source of our troubles, we shouldn't test people for drugs,
we should test them for stupidity, ignorance, greed and love of power. -P.J. O'Rourke, writer (1947- )

Reply by email

Jonas Maebe
to Chris Handley
Chris Handley wrote 11 lines
Here is the output: ****************************** Free Pascal Compiler version 2.2.1 [2007/10/30] for i386 Copyright (c) 1993-2007 by Florian Klaempfl Target OS: Darwin for i386 Compiling HelloWorld.p Assembling test Linking HelloWorld /usr/bin/ld: /usr/lib//libc.dylib unknown flags (type) of section 6 (__TEXT,__dof_plockstat) in load command 0

Did you install Xcode 3.0 after upgrading to Mac OS X 10.5? And if so, did you install the command line development (or Unix development, I forgot the exact name) support? FPC requires that both are installed.

The above error suggests that the linker of an older Xcode version is still installed.

Jonas

Reply by email