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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to