[fpc-devel]fpgtk problem

Jeff Pohlmeyer yetanothergeek at yahoo.com
Wed Apr 2 04:44:37 CEST 2003


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.


__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online, calculators, forms, and more
http://tax.yahoo.com



More information about the fpc-devel mailing list