Sign in Join

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

Mailing lists / fpc-pascal / 2006-03

FPC for Macintosh problems

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

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

Felipe Monteiro de Carvalho

Hello,

I am trying to compile a hello world for Mac OS X. The code is like this:

program test;
begin
  WriteLn('Hello world');
end.

But when I execute the compile with this command: ./fpc /Volumes/Dados/Documentos/test.pas

I get this errors:

Target OS: Darwin for PowerPC
Compiling /Volumes/Dados/Documentos/test.pas
Assembling test
Linking /Volumes/Dados/Documentos/test
cat: link.res: No such file or directory
test.pas(5,1) Error: Error while linking
Error: ./ppcppc returned on error exitcode

I see a test.o file, but no compiled file.

I am using Free Pascal 2.0.2 on a Mac OS X 10.2 Jaguar. I installed the development tools and ld does exist.

I am using it on a PearPC emulator, by the way, not a real Mac.

thanks,

Felipe Monteiro de Carvalho
Jonas Maebe
to Felipe Monteiro de Carvalho
Felipe Monteiro de Carvalho wrote 17 lines
But when I execute the compile with this command: ./fpc /Volumes/Dados/Documentos/test.pas I get this errors: Target OS: Darwin for PowerPC Compiling /Volumes/Dados/Documentos/test.pas Assembling test Linking /Volumes/Dados/Documentos/test cat: link.res: No such file or directory test.pas(5,1) Error: Error while linking Error: ./ppcppc returned on error exitcode I see a test.o file, but no compiled file. I am using Free Pascal 2.0.2 on a Mac OS X 10.2 Jaguar. I installed the development tools and ld does exist.

I've never seen this error before, and it hasn't even before been reported either. Try compiling with -s and see if there is a link.res. If not, it's probably a bug in your emulator.

Jonas