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