[fpc-pascal] Is there some reason why the linker cannot find crti.o, crtn.o etc?

Marco van de Voort marcov at stack.nl
Mon Jun 29 15:29:56 CEST 2015


In our previous episode, vfclists . said:
> Warning: "crti.o" not found, this will probably cause a linking failure
> templateSys.lpr(39,1) Warning: "crtn.o" not found, this will probably cause
> a linking failure.

Under Linux, the directory for those files is passed to FPC by a -Fl line in
the fpc.cfg which is setup by the installer script (standalone pkg) or the
distribution (in the case of a distribution package)
 
Usually that installer calls fpcmkcfg which calls gcc with
--print-libgcc-file-name to determine the location.

This assumes everything is configured correctly when FPC was installed, if
not, try rerunning fpcmkcfg or manually fixing fpc.cfg




More information about the fpc-pascal mailing list