[fpc-pascal] Documentation or compiler bug?
Hairy Pixels
genericptr at gmail.com
Sat Jul 8 03:04:44 CEST 2023
I get the error "Procedure directive "CDECL" cannot be used with "EXTERNAL"" when I use "cdecl" with external modifiers yet the docs at https://www.freepascal.org/docs-html/ref/refsu73.html say":
When compiling this, and linking to the C-library, the strlen function can be called throughout the program. The external directive tells the compiler that the function resides in an external object file or library with the “strlen” name (see 14.7).
Suggesting they can be used together, so which is right? Compiler is: Free Pascal Compiler version 3.3.1 [2023/03/03] for aarch64
Regards,
Ryan Joseph
More information about the fpc-pascal
mailing list