[fpc-devel]fpgtk problem

Pavel V. Ozerski pavel at insect.mail.iephb.ru
Wed Apr 2 11:32:08 CEST 2003


Hello Jeff,

Wednesday, April 02, 2003, 3:44:37 AM, you wrote:

JP> I finally decided to make an attmept at compiling fpc from the CVS sources.
JP> (fixes branch, 2003-04-01)

JP> Everything went smooth, except for one small problem:

JP>   fpgtk.pp(3032,57) Error: Illegal parameter list

JP> The code in question is this:

JP>   procedure TFPgtkObject.SignalEmit (aName:string; Args:array of const);
JP>   begin
JP>     gtk_signal_emit_by_name (TheGtkObject, pgchar(aName), Args); 
JP>   end;

JP> Apparently the compiler is getting confused about exactly what
JP> a "const" is, when Args is passed from a regular function to a 
JP> cdecl function.

JP> At any rate, changing the declaration to this:

JP>   procedure TFPgtkObject.SignalEmit (aName:string; Args:array of TVarRec);

JP>  - seems to solve (or at least hide) the problem.


JP> __________________________________________________
JP> Do you Yahoo!?
JP> Yahoo! Tax Center - File online, calculators, forms, and more
JP> http://tax.yahoo.com
JP> _______________________________________________
JP> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
JP> http://lists.freepascal.org/mailman/listinfo/fpc-devel

Did you test also {$Mode Delphi}?

-- 
Best regards,
 Pavel                            mailto:pavel at insect.mail.iephb.ru





More information about the fpc-devel mailing list