led@athena.mit.edu (Jay Jungalwala) (01/25/89)
Hi there, Well here is my problem, I am writing a pascal program on a VAX 11/780 Running Ultrix (ick) 2.0, useing the standard pascal complier (not sure which version!) and my book tells me that I can add include files (.h), like in C, useing two different ways: 1) (*$i filename *) Which worked to a point, but when I try and use something that is defined in the .h file it dies. 2) %include 'filename' Which my book said would work on a Vax machine but it dies and tells me that the % is not right syntax, so I removed the % then it tells me that the include is a bad procedure, and etc. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= MY BOOK: Pascal with Applications in Science and Engineering by Susan Finger and Ellen Finger (c) 1986 ( The book I think is very good ) -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= So anyway what should I do now? Which one works? You can e-mail me back if you would like, at either one of the address(s) below. Thanks in advance. --------------------------------------------------------------------------- R-E-P-L-E-Y---T-O--> led@wombat.mit.edu OR lsrsh!led@wombat.mit.edu (Jay Jungalwala)
rog@hpcilzb.HP.COM (Roger Haaheim) (01/26/89)
%include 'filename'; <--- don't forget the semicolon...
led@athena.mit.edu (Jay Jungalwala) (01/28/89)
In article <2180001@hpcilzb.HP.COM> rog@hpcilzb.HP.COM (Roger Haaheim) writes: >%include 'filename'; <--- don't forget the semicolon... Umm... funny thing is that I tried that, and I got the message that the "%" was in illegal statement or something like that. SO I was like ok, I guess my book was wrong. Well I found out what it should be, well at least in my version, and that it a "#". Well thanks anyway. -JJ --------------------------------------------------------------------------- R-E-P-L-E-Y---T-O--> led@wombat.mit.edu OR lsrhs!led@wombat.mit.edu (Jay Jungalwala)
rang@cpsin3.cps.msu.edu (Anton Rang) (01/29/89)
In article <8977@bloom-beacon.MIT.EDU> led@athena.mit.edu (Jay Jungalwala) writes: >In article <2180001@hpcilzb.HP.COM> rog@hpcilzb.HP.COM (Roger Haaheim) writes: >>%include 'filename'; <--- don't forget the semicolon... > > >Umm... funny thing is that I tried that, and I got the message that the "%" >was in illegal statement or something like that. SO I was like ok, I guess >my book was wrong. Well I found out what it should be, well at least in my >version, and that it a "#". Well thanks anyway. Maybe your book is written for the VMS Pascal compiler, which uses the "%include" syntax (if my memory serves me correctly....) +---------------------------+------------------------+----------------------+ | Anton Rang (grad student) | "UNIX: Just Say No!" | "Do worry...be SAD!" | | Michigan State University | rang@cpswh.cps.msu.edu | | +---------------------------+------------------------+----------------------+