[fpc-pascal] Statically link library

Ludo Brands ludo.brands at free.fr
Sat Apr 20 12:52:09 CEST 2013


On 04/20/2013 11:54 AM, Darius Blaszyk wrote:
> Hi,
> 
> I'm linking a C and FPC program but I keep on getting undifined symbols
> (see example below).
> 
> Error: Undefined symbol: _strcpy
> Sofar I have added:
> 
> {$linklib msvcrt}
> {$linklib gcc}     
> 
> What other libraries should I add? BTW, I'm compiling the C library with
> MinGW.
> 
> Regards, Darius
> 
> 

_strcpy should be in msvcrt. It is defined in the mingw libmsvcrt.a file
on my system. Is your lib path correct?

BTW I use an explicit {$linklib libmsvcrt.a} with mingw.

Ludo



More information about the fpc-pascal mailing list