On Thu, 20 Jul 2006, Carsten Bager wrote:
> 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?
No. But this has nothing to do with initc, just with the fact that you use a C lib; Strange though, because the arm-linux libc has this. What libc did you use for linking ?
Michael. _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal