[fpc-pascal] array of const with cdecl procedure

ik idokan at gmail.com
Sun Nov 11 13:40:05 CET 2012


Hello,

I'm trying to write a shard library of my own that you can use with C
as well. I'm using mode fpc, and not objfpc.

I created something like this:

...
procedure varargs_example(params : array of consts); cdecl;
...

The compiler report an error:
Error:Type identifier expected
Fatal: Syntax error, ")" expected but "CONST" found


Please note that I need to access the "params" variable inside my code.
How can I implement it correctly with FPC 2.6.0 ?

Thanks,
Ido



More information about the fpc-pascal mailing list