Mac OS X Lion and FPC

Hello.
I have a problem with compilling pascal in OS X Lion (10.7.4).
I installed fpc 2.6.0, fpc sources and then Lazarus 1.0.
I wrote this code:
program test1;
var
  a:integer;
  f:text;
begin
  assign(f,'file.txt');
  reset(f);
  readln(f,a);
  writeln(a);
  close(f);
  end.
I created file "file.txt" i where wrote "1".
Then i try compile it and get error message.
I try compile this code by Terminal, but i get error message again.
Free Pascal Compiler version 2.6.0 [2011/12/30] for i386
Copyright (c) 1993-2011 by Florian Klaempfl and others
Target OS: Darwin for i386
Compiling project1.pas
Assembling (pipe) project1.s
Linking project1
ld: warning: -macosx_version_min not specified, assuming 10.7
ld: warning: PIE disabled. Absolute addressing (perhaps -mdynamic-no-pic) not allowed in code signed PIE, but used in __start from /usr/lib/crt1.o. To fix this warning, don't compile with -mdynamic-no-pic or link with -Wl,-no_pie
ld: can't write output file: project1 for architecture i386
An error occurred while linking
project1.pas(8,3) Error: Error while linking
project1.pas(8,3) 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)
Help me solve my problem, please.

See if this thread helps:
https://discussions.apple.com/message/5112916#5112916

Similar Messages

Maybe you are looking for

  • Download data from IT to Locl Server

    Hi Friends, I have writte the entire code for my purposr. All i have to do is download data from an Internal table to the local server as a text file. I am having problems in appending statement. I am not getting the proper data into it_outfile. *Tab

  • Motivations to buy a Mac Powerbook

    Dear all, I am thinking to buy a Mac Powerbook. However, I need advice from Mac fans. What are good and bad points about using a Mac Power book? Thanks a lot! SONY   Windows XP  

  • Please Help- 2 ipods in need of serious help

    Thanks for taking the time to look and help. I recently updated itunes (is it to 6.01?) Anyhow since doing this my ipod is not recognised and comes up with the following message.... When you open iTunes, this message appears, "The software required f

  • Iphoto no longer opens in the media browser in iweb, iphoto no longer opens in the media browser in iWeb

    Hello, I am having several issues with Iphoto after upgrading to '11. I was able to use time machine to reload photos as the photos disappeared...basically it was a disaster. I am continuing to experience a lot of issues with Iphoto - it no longers o

  • Error Message - Pavilion dv6-6c50us

    Error Message - Pavilion dv6-6c50us Options  05-27-2012 07:47 PM I recently purchased (May 19, 2012) and received (May 21, 2012) my HP Pavilion dv6-6c50us.  Upon opening and starting the computer I received this error message: Please Note the Memory