[fpc-pascal] Documentation or compiler bug?

Hairy Pixels genericptr at gmail.com
Sat Jul 8 16:44:57 CEST 2023

> On Jul 8, 2023, at 3:57 PM, Michael Van Canneyt via fpc-pascal <fpc-pascal at 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.

Ryan Joseph

More information about the fpc-pascal mailing list