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

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to