> When I use initc I get thise errors
> 
> Linking nanoxdemo
> 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?

Patch cprt0.as for your libc. 
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to