[fpc-pascal] Linking FPC units with Visual Studio 2013 projects

Tomas Hajny XHajT03 at hajny.biz
Fri Aug 21 09:59:54 CEST 2015


On Fri, August 21, 2015 09:36, Tobias Giesen wrote:


Hello,

> yes, to interface between Pascal and C I use 'extern "C"'. I do not have
> any problems linking between my C code and the Pascal code.
>
> The only problem is that the Pascal RTL uses DLL imports, which the
> Microsoft linker cannot resolve, for example:
>
> unresolved external symbol _$dll$kernel32$Sleep
>
> So again the question is how to enable the Microsoft linker to resolve
> the DLL dependencies.

The particular symbol should be defined in libimpsystem.a (and also in
libimpwindows.a). However, I don't know whether adding this library to
your Visual Studio project really solves the problem completely.

Tomas





More information about the fpc-pascal mailing list