[fpc-pascal] Re: Interfacing with the free pascal compiler ?
L
L at z505.com
Wed Feb 13 00:15:32 CET 2008
> also FPC doesn't support the <USES unitname AT
> "path/unitname.pas"> construction, Delphi can't manage exported
> variables from dynamic linking modules (DLL, so, dylib...) but FPC
> does it, etc.
FPC supports:
uses
unit1 in "../foo/bar/somefile.pas";
I am using this so I don't have to ship FPC config files in examples and
demos for Powtils 1.7.X. (no -Fu search path needed for relative
directories when using this trick).
You can even go:
uses
newname in "someunit.pas";
begin
newname.callfunction();
end.
You are right though that there are still differencecs between FPC such
as not being able to export overloaded functions and minor things that
are still feature tweaks.
library example;
exports
overloaded(param)
overloaded(different params);
overloaded(other different params);
end.
Regards,
L505
More information about the fpc-pascal
mailing list