[fpc-pascal] Issue with Linking

Jonas Maebe jonas.maebe at elis.ugent.be
Fri Aug 21 10:08:06 CEST 2015


Chris Moody wrote:
> Seems it compiles but still complains about linking.
>
> Free Pascal Compiler version 3.0.0rc1 [2015/08/20] for arm
> Copyright (c) 1993-2015 by Florian Klaempfl and others
> Target OS: Linux for ARMHF
> <snip>
> Assembling dentist
> Linking Dentist
> Dentist.pas(106) Warning: "crtbegin.o" not found, this will probably
> cause a linking failure
> Dentist.pas(106) Warning: "crtend.o" not found, this will probably cause
> a linking failure

These are gcc files. When performing a regular installation of FPC, the 
path to these files is added to fpc.cfg using the -Fl parameter.

You can manually get this path with
   dirname `gcc --print-libgcc-file-name`

Then add -Fl<result_of_the_above> to the "#ifdef VER3_0" section of your 
.fpc.cfg


Jonas




More information about the fpc-pascal mailing list