[fpc-pascal] Strange error message

Sven Barth pascaldragon at googlemail.com
Wed May 8 11:22:23 CEST 2013


Am 08.05.2013 11:20, schrieb Darius Blaszyk:
>
> I'm working on a glut app but I keep on getting the message: Error: 
> Can't assign local procedure/function to procedure variable
>
> The error is at this line: glutDisplayFunc(@redrawfunc);
>
> And the callback (which is declared in the same .inc file) is declared 
> as: procedure redrawfunc; cdecl;
>
> I must be overlooking something obvious but I just don't see what. Any 
> ideas?
>
Is the "redrawfunc" a nested function/procedure?
Is the include file maybe included in such a way that the compiler 
treats its code as a nested function/procedure?

Regards,
Sven



More information about the fpc-pascal mailing list