[fpc-pascal] linker error when cross compile for arm

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Nov 7 22:06:25 CET 2010


On 06 Nov 2010, at 04:18, Michael Fung wrote:

> But when I try to compile a program with the synapse units it gives the
> following error:
> 
> /usr/lib/fpc/2.5.1/units/arm-linux/rtl/cprt0.o: In function
> `_haltproc_eabi':
> (.text+0x88): undefined reference to `_fini'
> /usr/lib/fpc/2.5.1/units/arm-linux/rtl/cprt0.o: In function
> `_haltproc_eabi':
> (.text+0x90): undefined reference to `_init'
> tcpclient1.lpr(42,21) Error: Error while linking
> tcpclient1.lpr(42,21) Fatal: There were 1 errors compiling module, stopping

That symbol should be defined in your ARM /usr/lib/crti.o, which is automatically linked by the compiler when cprt0.o is required.


Jonas


More information about the fpc-pascal mailing list