Xref: news2.mv.net comp.os.msdos.djgpp:8614 From: peter AT agnes DOT dida DOT physik DOT uni-essen DOT de (Peter Gerwinski) Newsgroups: comp.os.msdos.djgpp Subject: Re: GNU Pascal info? Date: 14 Sep 1996 10:28:21 GMT Organization: Universitaet Essen, Germany Lines: 50 Message-ID: <51e1c5$936@sun3.uni-essen.de> References: <32392889 DOT 41C6 AT LSTM DOT Ruhr-UNI-Bochum DOT De> Reply-To: peter DOT gerwinski AT uni-essen DOT de NNTP-Posting-Host: agnes.dida.physik.uni-essen.de To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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/