[fpc-pascal] Linking C library

Marco van de Voort marcov at stack.nl
Wed Jan 15 10:13:25 CET 2014


In our previous episode, Darius Blaszyk said:
> 
> I'm trying to link a C library to my pascal app. From the messages I
> understand that I forgot to link in some additional library. However I
> cannot find which one that is. In my app I have included: 
> 
> {$IFDEF MSWINDOWS}
>  {$linklib libmsvcrt}
> {$ELSE}
>  {$linklib c}
> {$ENDIF} 
> 
> Is there a way to find out which library I should additionally link or
> does someone know which library I should add? Below is the list of
> errors I get. 

Find out what compiler the additional library it is built with, and then link
its run time. 
 



More information about the fpc-pascal mailing list