Hi all,
please help me with the following error,
I try to arm crosscompile for android OS. only a HelloWorld project that uses dynlibs.pas unit.
/helloworld$ ppcarm -Tlinux -O- -XP -Xd -Fu/usr/share/fpcsrc/rtl/units/arm-linux/ -FD/usr/share/fpcsrc/binutils/ helloworld.lpr
Free Pascal Compiler version 2.5.1 [2011/03/24] for arm
Copyright (c) 1993-2010 by Florian Klaempfl
Target OS: Linux for ARMEL
Compiling helloworld.lpr
Assembling helloworld
Compiling resource helloworld.or
Linking helloworld
/usr/share/fpcsrc/rtl/units/arm-linux/cprt0.o: In function `_start':
(.text+0x4c): undefined reference to `__libc_start_main'
/usr/share/fpcsrc/rtl/units/arm-linux/cprt0.o: In function `_haltproc_eabi':
(.text+0x88): undefined reference to `_fini'
/usr/share/fpcsrc/rtl/units/arm-linux/cprt0.o: In function `_haltproc_eabi':
(.text+0x90): undefined reference to `_init'
/usr/share/fpcsrc/rtl/units/arm-linux/dl.o: In function `DL_init':
/usr/share/fpcsrc/rtl/linux/../unix/dl.pp:100: undefined reference to `dladdr'
helloworld.lpr(80) Error: Error while linking
helloworld.lpr(80) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
I use a cross library of android NDK
thanks