hi, search *.o files in your crosstools and add diretory to ppcarm with -Fl
f.e. find /usr/local/arm/armlinux/gcc-3.4.1-glibc-2.3.2 -name "*.o" > -----Mensaje original----- > De: [EMAIL PROTECTED] [mailto:fpc-pascal- > [EMAIL PROTECTED] En nombre de Helmut Hartl > Enviado el: viernes, 04 de mayo de 2007 19:56 > Para: FPC-Pascal users discussions > Asunto: RE: [fpc-pascal] some problem in SVN FPC for arm linux (v > 2.3.1) > > > why do you want to load libc dynamically? may you can try > > the following approach (scroll to bottom): > > http://community.freepascal.org:10000/docs-html/prog/progse53 > > Well - that was what i would like to do - I thougt i try it > using libc, as i hade some old code who was doing it just that way. > > But also the following: > > program nslu_test; > {$mode objfpc}{$H+} > {$linklib c} > begin > writeln('Hello'); > end. > > > ppcrossarm -XParm-linux- -CfSOFT nslu_test.lpr -Xd -Xr/usr/armlib > > Fails with: > > Free Pascal Compiler version 2.3.1 [2007/05/03] for arm > Copyright (c) 1993-2007 by Florian Klaempfl > Target OS: Linux for ARM > Compiling nslu_test.lpr > Assembling nslu_test > Linking nslu_test > /usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function > `_haltproc': > : undefined reference to `_fini' > /usr/local/lib/fpc/2.3.1/units/arm-linux/rtl/cprt0.o: In function > `_haltproc': > : undefined reference to `_init' > nslu_test.lpr(7,17) Error: Error while linking > nslu_test.lpr(7,17) Fatal: There were 1 errors compiling module, > stopping > Fatal: Compilation aborted > > > Am i using the compiler switches wrong? > In "/usr/armlib" are the objects files of the slugosle build process > ... > > Thank you, > > helmut > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > > __________ Informacisn de NOD32, revisisn 2239 (20070504) __________ > > Este mensaje ha sido analizado con NOD32 antivirus system > http://www.nod32.com _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal