Helmut Hartl schrieb: >> 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 ...
What libc do you use? _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal