# [fpc-pascal] Nano-x

Marco van de Voort marcov at stack.nl
Thu Jul 20 14:48:07 CEST 2006

```> When I use initc I get thise errors
>
> L:\Lib\fpc202\arm-linux\cprt0.o: In function `_start':
> : undefined reference to `__libc_start_main'
> L:\Lib\fpc202\arm-linux\cprt0.o: In function `_haltproc'
> : undefined reference to `_fini'
> L:\Lib\fpc202\arm-linux\cprt0.o: In function `_haltproc'
> : undefined reference to `_init'
>
> I can see (in the map file) that the linker pulls cprt0 (instead of prt0)
> and cprt0 calls "__libc_start_main", "_fini" and "_init". As you can
> see these functions are not in the clib on my platform.

These are no problems of initc, but cprt0.as which still assumes you are
using glibc (though most of those symbols are fairly general for libcs)

> Is there a way around?