home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.pascal
- Path: sparky!uunet!das.wang.com!wang!news
- From: s2942275@techst02.technion.ac.il (Yaniv Golan)
- Subject: Distributing TPUs
- Reply-To: s2942275@techst02.technion.ac.il (Yaniv Golan)
- Organization: Technion
- Date: Mon, 21 Dec 1992 13:54:20 GMT
- Message-ID: <1992Dec21.135420.10280@discus.technion.ac.il>
- Sender: news@wang.com
- Lines: 59
-
- I've got a question, and it might be a stupid question...
-
- I want to distribute a TP unit which uses a second unit. I do not want
- to distribute the second unit with it, only the first TPU. Can it be done ?
-
- Now the reason the question might be stupid, is that I've already done it
- once. But i tried it now, and to my surprise, when trying to compile a
- program using my unit without the other one being present, the compiler
- produced an error message stating it can't find the used unit.
-
- Maybe an example would be in place to clarify what I mean :
-
- Unit A;
- INTERFACE
- procedure x;
- IMPLEMENTATION
- procedure x;
- begin
- .
- .
- end;
-
- END.
-
- ------
-
- Unit B;
- INTERFACE
- procedure y;
- IMPLEMENTATION
- Uses A;
- procedure y;
- begin
- .
- .
- x;
- .
- end;
-
- END.
-
- And now, when i try to compile the following program :
-
- program z;
- uses B;
- begin
- y;
- end.
-
-
- with only B.TPU in my path, the compiler says it can't find A.PAS...
-
- What am i doing wrong? Or maybe it is impossible to do it?
-
- Thanks,
-
- Yaniv Golan
- --
- E-Mail : s2942275@techst02.technion.ac.il
-