[fpc-devel] Cant link?

Michael Van Canneyt michael at freepascal.org
Thu May 26 18:45:01 CEST 2005



On Thu, 26 May 2005, Michael Preslar wrote:

> Another question from a newbie fpc coder..
> 
> When compiling my project, I do a:
> 
> fpc -XS -XX -O3 -So -Fu~/manndoor/units -Fu~/manndoor/units/elecom
> -Fu~/manndoor/units/unix lord.pas
> 
> it goes through with its thing, warning me of unused variables and whatnot,
> but finishes with:
> 
> lord.pas(1841,1) Error: Can't call the linker, switching to external linking
> Error: /usr/local/bin/ppc386 returned an error exitcode (normal if you did not
> specifiy a source file to be compiled)
> 
> 
> Whats the error that Im getting and how can I fix it?

You don't have the binutils installed. The compiler doesn't find 'ld'.

try executing the 'ld' command on a command prompt. If you get something like
ld: Command not found
then you know ld is not installed, and you should install the binutils package.

Michael.




More information about the fpc-devel mailing list