On Fr, 2016-09-02 at 08:57 -0700, fredvs wrote: > Hello. > > The night was very long and hard... > > I have some result. > > Here how I did: > > - Copy ld-linux into /compat/linux/bin > > - Copy dependencies-linux needed by ld-linux (some needed to be in > /compat/linux/lib, other in /compat/linux/lib64). > > - When using fpc-linux to compile-link a simple fpgui-programe, compilation > is ok, linking begin but after 3 minutes, there is a message from fpc. > > > Error (9014) Can't call the linker, switching to external linking > > Error (9013) Error while linking. > > So i tried to link manually all the compiled files in /units to see what > appends with: > > -> /compat/linux/bin/ld -o /compat/linux/lib/crt0.o > /usr/test/units/test.o -lc > > And there is that error message: > > <http://free-pascal-general.1045716.n5.nabble.com/file/n5726229/crossfbsdlin.jpg> > > > Do you have a idea what is wrong ?
Not very precise, but the error "undefinded reference to ..." tells you it can't find something, that should be there. And since $FPG_MAIN is the first I assume you will have to pass a list of paths to ld helping it finding the .o files missing. There are ways to see the path list the compiler hands over to the linker - which others will have to show you because I don't know how - and then you can use that path list to tell the linker while trying manually. Marc _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal