[Lazarus] Newbie, porting class to FPC but get procedure assignment error

Mark Morgan Lloyd markMLl.lazarus at telemetry.co.uk
Fri Jun 19 15:08:54 CEST 2015


Bo Berglund wrote:
> On Fri, 19 Jun 2015 12:35:28 +0200, Michael Schnell
> <mschnell at lumino.de> wrote:
> 
>> On 06/19/2015 12:28 PM, Bo Berglund wrote:
>>>>   " Safenet" might be able to provide a GNU C version
>>>> of that file."
>>>>
>>> Except I got a reply from them that they cannot support older software
>>> in FPC....
>>> So I guess I have to go the Delphi DLL route instead...
>>>
>> That has nothing to do at all with FPC. FPC uses the same linker 
>> (format) as GNU C. So you don't need to tell them anything about FPC but 
>> just mention gcc.
>>
> Interesting,
> a number of years ago I had a discussion with them about interfacing C
> programs on Linux (x86) to the Linux driver they make.
> Apparently it does exist some support for that, but I did not pursue
> it because we found that we could stay on Windows (we were developing
> the 64 bit version of our data processing program at the time).
> Maybe I could go back to the info I collectad at that time and dig out
> some such interface file?

Maybe, but remember that GCC also runs on Windows and what you're trying 
to do is find the "right" object (linkable) files for FPC + Windows.

Mentioning FPC muddied the water, and gave them an excuse to wiggle out 
of their commitments. Stick to GCC, which is what Michael suggested in 
the first place, and ask for the libraries suitable for whatever 
variants of Windows you are interested in plus the .h file. Knowing the 
content of the .h file, it should be possible to get FPC (or at worst an 
assembler shim) to call their functions.

-- 
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]




More information about the Lazarus mailing list