On 2016-08-31 16:25, fredvs wrote: > Of course because /usr/lib/crti.o is 64 bit. > > The 32 bit libraries are in /usr/lib32/ and in /usr/local/lib32. > > How to tell to *ld* to search in /usr/lib32 + /usr/local/lib32 while > linking?
Take a look in your ~/.fpc.cfg file. If the following doesn't exist, add it, and specify the correct paths to the 32-bit libraries as found on your system. # cross-compiling to i386 support - special library path #IFDEF cpui386 -Fl/usr/local/lib32 -Fl/usr/lib32 -Xd #ENDIF Regards, Graeme -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal