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

Tobias Giesen tobiasgiesen at gmail.com
Fri Aug 21 14:27:18 CEST 2015


Hello,

many thanks for all the insight! I will be able to complete it now. A
separate DLL should be easy enough, too.

Cheers,
Tobias

> Am 21.08.2015 08:40 schrieb "Tobias Giesen" <tobiasgiesen at gmail.com>:
> >
> > 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?
> 
> Short answer: no
> 
> Long answer:
> 
> ...



More information about the fpc-pascal mailing list