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

2015-08-21 Thread Tobias Giesen
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" : > > > > Hello, > > > > I have to compile a few Pascal units with FPC and add them to a Visual > > C++ project. Afte

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

2015-08-21 Thread Sven Barth
Am 21.08.2015 11:04 schrieb "Tomas Hajny" : > > On Fri, August 21, 2015 10:22, Tobias Giesen wrote: > >> The particular symbol should be defined in libimpsystem.a > > > > Fantastic! After adding some more libraries, the only remaining missing > > symbol is FPC_WIDEINITTABLES. I can probably just cr

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

2015-08-21 Thread Sven Barth
Am 21.08.2015 08:40 schrieb "Tobias Giesen" : > > 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$kernel3

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

2015-08-21 Thread Tomas Hajny
On Fri, August 21, 2015 10:22, Tobias Giesen wrote: >> The particular symbol should be defined in libimpsystem.a > > Fantastic! After adding some more libraries, the only remaining missing > symbol is FPC_WIDEINITTABLES. I can probably just create a dummy for > that in a Pascal unit, as the code do

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

2015-08-21 Thread Tobias Giesen
> The particular symbol should be defined in libimpsystem.a Fantastic! After adding some more libraries, the only remaining missing symbol is FPC_WIDEINITTABLES. I can probably just create a dummy for that in a Pascal unit, as the code does not need widestrings. Cheers, Tobias

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

2015-08-21 Thread Tomas Hajny
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 re

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

2015-08-21 Thread Tobias Giesen
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$kernel3

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

2015-08-21 Thread Michael Schnell
On 08/20/2015 12:27 PM, tobiasgie...@gmail.com wrote: Hello, I have to compile a few Pascal units with FPC and add them to a Visual C++ project. As the object structure (and supposedly the naming scheme for overloaded functions) is different in fpc and C++ you can't link them (neither statica