> On Jul 8, 2023, at 3:57 PM, Michael Van Canneyt via fpc-pascal
> <fpc-pascal@lists.freepascal.org> wrote:
>
> You must put the cdecl (which is the calling convention) before the external:
ohhhh so the order is the problem. That error message is misleading and should
be changed. I know c library functions are external and cdecl but that error
really confused me.
As for the internal error that still should't happen but I would have gotten
the wrong result anyway if it had run. Thanks for clarifying.
Regards,
Ryan Joseph
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal