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

Tobias Giesen tobiasgiesen at gmail.com
Fri Aug 21 08:40:38 CEST 2015


Hello,

I have to compile a few Pascal units with FPC and add them to a Visual 
C++ project. After adding system.o to the Visual C++ project, I get 
linker errors like this:

system.o : error LNK2001: unresolved external symbol _$dll$kernel32$Sleep

Apparently the Microsoft linker does not recognize the FPC way of
mangling the DLL dependencies? Is there a way to compile the RTL in a
way that Microsoft can link? Or anything else I can do?

Thanks.
Tobias Giesen





More information about the fpc-pascal mailing list