[fpc-devel] Can't declare procedure as EXTERNAL
peter at freepascal.org
Mon Feb 21 07:21:23 CET 2005
> I am porting CLX to FPC.
> Some time ago, when I created a Qt/Embedded binding for FPC,
> Qt.pas did not compile anymore due to some changes in FPC.
> The error was:
> Can't declare procedure as EXTERNAL
> See also:
> I created a tool to move the declarations to the interface,
> but now I notice that FPC does not give an error anymore.
> Is the problem solved or should I still for safety move the declarations
> to the interface section ?
It is the best to have the external declarations in the interface.
If the external references are in the implementation section it might be
that fpc generates a stub that calls the external reference.
More information about the fpc-devel