[fpc-pascal] Issue with Linking

Martin Schreiber mse00000 at gmail.com
Thu Aug 20 16:37:18 CEST 2015


On Thursday 20 August 2015 16:03:11 Chris Moody wrote:
>
> I've done that. Still can't compile code due to ld:
>
> Assembling dentist
> Linking Dentist
> /usr/bin/ld: warning: link.res contains output sections; did you forget -T?
> /home/pi/fpc-2.6.4/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In
> function `_haltproc_eabi':
> (.text+0x88): undefined reference to `_fini'
> /home/pi/fpc-2.6.4/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In
> function `_haltproc_eabi':
> (.text+0x90): undefined reference to `_init'
> Dentist.pas(106) Error: Error while linking
> Dentist.pas(106) Fatal: There were 1 errors compiling module, stopping
> Fatal: Compilation aborted
> Error: /usr/bin/ppcarm returned an error exitcode
>
I saw that linker error too. A workaround was to add "xlib" to "uses". This 
needs an installed xlib-devel package, I don't remember the exact name.

Martin



More information about the fpc-pascal mailing list