> You need to link to the C library as well.

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.
Is there a way around?
 
Carsten

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to