[fpc-pascal] Linking Pascal code to C/C++ static librariesunder Windows
Tomas Hajny
XHajT03 at mbox.vol.cz
Wed Aug 17 20:49:22 CEST 2005
Lowell C. Savage napsal(a):
> Marco, replying to me, wrote in part:
>> > The Problem:
>> >
>> > The problem is that I can't seem to figure out how to get FPC to link
>> to
>> > static libraries. FPC's linker won't look for the "Wrapper.lib". It
>> > either wants "Wrapper.dll" or "Wrapper.lib.dll". I can compile
>> wrapper.c
>> > to an object module (in Visual C 6.0) and FPC will link to that object
>> > file.
>>
>>FPC is link compatible with GCC, not with VC. IOW, recompile your sources
>>with GCC.
.
.
Out of curiosity - is this limitation related to different object library
format used/supported by GCC and VC, or yet something else? If it's just
the format, there might be tools to translate from one format to another
(although there might be limitations, of course), or it _might_ be
possible (with some manual tweaking - for sure not easy) to use a linker
supporting both formats (I'd expect OpenWatcom Linker to be able to do
it)...
Tomas
More information about the fpc-pascal
mailing list