>> Pass the --gc-sections parameter to the linker (and use object files >> compiled with -CX). >> > OK, I'll try. What about the *.a's?
--gc-sectiosn will not help. FPC does not generate .o files with multiple sections for linux. Smartlinking for linux will create libp*.a files instead. You need to link with the libp*.a instead of the *.o files. It can't be written down what is required for your program to link manual. But you can compile with -s to generate a link.res and ppas.sh to see the commands that are use by fpc for linking. Peter _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal