[fpc-devel] RE: error when linking

Jeff Pohlmeyer yetanothergeek at gmail.com
Thu May 26 00:28:42 CEST 2005


> So I delete the chmlib.so and the
> compiler try to compile with chmlib.a

FPC tells the linker to look first in the current directory,
so instead of deleting chmlib.so, you can just do this:
 % ln -s /usr/local/lib/libchm.a
in the directory of your pascal source.


> undefined reference to `__moddi3'

Try adding this line to the top of your unit or program:
{$LINKLIB gcc_s}


 - Jeff




More information about the fpc-devel mailing list