[fpc-devel]fpgtk problem

Michael Van Canneyt michael.vancanneyt at wisa.be
Wed Apr 2 09:41:28 CEST 2003

On Tue, 1 Apr 2003, Jeff Pohlmeyer wrote:

> I finally decided to make an attmept at compiling fpc from the CVS sources.
> (fixes branch, 2003-04-01)
> Everything went smooth, except for one small problem:
>   fpgtk.pp(3032,57) Error: Illegal parameter list
> The code in question is this:
>   procedure TFPgtkObject.SignalEmit (aName:string; Args:array of const);
>   begin
>     gtk_signal_emit_by_name (TheGtkObject, pgchar(aName), Args);
>   end;
> Apparently the compiler is getting confused about exactly what
> a "const" is, when Args is passed from a regular function to a
> cdecl function.
> At any rate, changing the declaration to this:
>   procedure TFPgtkObject.SignalEmit (aName:string; Args:array of TVarRec);
>  - seems to solve (or at least hide) the problem.

It hides the problem.
It's a serious compiler problem which - unfortunately - cannot be solved easily.


More information about the fpc-devel mailing list