[fpc-devel] RE: error when linking

Linuxer Wang linuxerwang at gmail.com
Thu May 26 01:06:47 CEST 2005


Jeff Pohlmeyer wrote:

>>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.
>  
>
Great, thank you.

>
>  
>
>>undefined reference to `__moddi3'
>>    
>>
>
>Try adding this line to the top of your unit or program:
>{$LINKLIB gcc_s}
>  
>
There's no libgcc_s.a or something else in my computer:

/usr/bin/ld: cannot find -lgcc_s
Error: Error while linking

>
> - Jeff
>
>_______________________________________________
>fpc-devel maillist  -  fpc-devel at lists.freepascal.org
>http://lists.freepascal.org/mailman/listinfo/fpc-devel
>
>  
>





More information about the fpc-devel mailing list