AlexeyT via fpc-pascal schrieb am Mo., 4.
Nov. 2019, 23:40:
> FPC 3.3.1-r43022 [2019/09/16] for Linux x64. This code crashes, because
> fpc sees 'x', 'y' wrong:
>
>Py_BuildValue('{sLsisisisisisisOsOsOsisisisisisO}',
> 'tag',
> Mark.Tag,
> 'x',
> Mark.PosX,
> 'y',
>
FPC 3.3.1-r43022 [2019/09/16] for Linux x64. This code crashes, because
fpc sees 'x', 'y' wrong:
Py_BuildValue('{sLsisisisisisisOsOsOsisisisisisO}',
'tag',
Mark.Tag,
'x',
Mark.PosX,
'y',
Mark.PosY,
'len',
Mark.LenX,
I must change it to this, it works ok:
It's possible but I've done it many
years ago, I don't remember all the details .
In think you'll have to use H2PAS ( https://wiki.lazarus.freepascal.org/Creating_bindings_for_C_libraries
).
From what I see from main.c, I think
you'll have