Re: [fpc-pascal] Linking Pascal code to C/C++ static libraries under Windows

2005-08-18 Thread Tomas Hajny
Date sent: Thu, 18 Aug 2005 11:48:32 -0600 To: fpc-pascal@lists.freepascal.org From: "Lowell C. Savage" <[EMAIL PROTECTED]> Subject: Re: [fpc-pascal] Linking Pascal code to C/C++ static libraries under Windo

Re: [fpc-pascal] Linking Pascal code to C/C++ static libraries under Windows

2005-08-18 Thread Lowell C. Savage
I would also have thought that with all the object formats that GCC emits, that one of them would be the object format used by VC, in which case using VC's linker would work. However, I was able to get a DLL compiled that I could link up and run (without getting an error that the DLL was missi

Re: [fpc-pascal] Linking Pascal code to C/C++ static libraries under Windows

2005-08-17 Thread Lowell C. Savage
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 modu

Re: [fpc-pascal] Linking Pascal code to C/C++ static libraries under Windows.

2005-08-16 Thread Marco van de Voort
> > 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

[fpc-pascal] Linking Pascal code to C/C++ static libraries under Windows.

2005-08-16 Thread Lowell C. Savage
Background: I have an old DOS console program that I'm trying to resurrect to run on Windows XP. There isn't much about the structure of the program that I need (or want) to change. But the interfaces to hardware will have to change. It uses the old "PORT" array to communicate to the Serial