[fpc-devel] Can't declare procedure as EXTERNAL
Peter Vreman
peter at freepascal.org
Mon Feb 21 07:21:23 CET 2005
> Hi,
>
> 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:
> http://www.nl.freepascal.org/lists/fpc-pascal/2004-December/007738.html
>
> 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
mailing list