Mail Archives: djgpp/1996/09/14/14:07:40
Thomas Demmer (demmer AT LSTM DOT Ruhr-UNI-Bochum DOT De) wrote:
> I tried to test the extended version of GNU-Pascal,
> but failed to link in /produce UNITS. Can anybody
> point me to where to find some information on GNU-Pascal?
General information:
ftp://kampi.hut.fi/jtv/gnu-pascal/
http://agnes.dida.physik.uni-essen.de/~gnu-pascal/
The best documentation available at the moment is the
Info documentation included in the 2.7.2-pre-release.
The mentioned problem is described in the "Borland Pascal"
section.
You can also contact the GNU Pascal mailing list, gpc AT hut DOT fi.
To subscribe, write to gpc-request AT hut DOT fi.
In short: Compile a unit with
gpc -c myunit.pas
link it with
gpc myprog.pas myunit.o -o myprog
In 2.6.3, you must include (somehow) the Interface in the
source of the program. The easiest way to do this is to
(*$include *) the *whole* :-( Unit into the program:
(*$I MyUnit *)
Program MyProg;
uses
MyUnit;
begin
[...]
end.
This is not necessary in 2.7.2, and there is also an --automake
option for automatic compilation and linking of Units.
See the 2.7.2 doc for details.
Peter
e-mail: peter DOT gerwinski AT uni-essen DOT de
home address: D\"usseldorfer Str. 35, 45145 Essen, Germany
WWW: http://agnes.dida.physik.uni-essen.de/~peter/
- Raw text -