Newsgroups: comp.lang.fortran
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!news.cs.indiana.edu!nstn.ns.ca!cs.dal.ca!silvert
From: silvert@cs.dal.ca (Bill Silvert)
Subject: Re: How to use -I to specify an alternate include directory in f77
Message-ID: <1991Apr18.141441.4436@cs.dal.ca>
Summary: it seems to be a general problem
Sender: silvert@cs.dal.ca.UUCP (Bill Silvert)
Reply-To: silvert%biome@cs.dal.ca
Organization: Habitat Ecology Div., Bedford Inst. of Oceanography
References: <1991Apr18.055611.6793@engin.umich.edu>
Date: Thu, 18 Apr 91 14:14:41 GMT

In article <1991Apr18.055611.6793@engin.umich.edu> oliveria@caen.engin.umich.edu (ROQUE DONIZETE DE OLIVEIRA) writes:
>The transcript below demonstrates tht problem I'm having with specifying
>an alternate directory to search for INCLUDE files in f77 on the decs running
>ultrix 4.1 or apollos running sr10.3 DomainOS.
>(00001)       INCLUDE 'nodes.cbl'
>**** Error #64 on Line 1: cannot open file
>
>The transcript above is for the apollos but I get a similar error on the decs.
>I tried several combinations of -I options. I also use j.f instead of j.F but
>nothing. 
>The man page on f77 for both decs (decstation 5000)  and apollos mention 
>the -I option although it says the -I option changes the search path for
> #include files. Isn't this #include refering to the INCLUDE f77 statement ?
>
>Does anyone know what is wrong ? I'm using the -I option incorrectly ? 

I've run into this on my SGI machine and was informed that the -I option
supports only the #include format.  So although it is in the manual, it
doesn't seem to do us any good.  I gather it is a general Unix problem.

If anybody can come up with a scheme to implement the -I option in f77
with the standard indented form that Roque describes above, it would be
great!


-- 
William Silvert, Habitat Ecology Division, Bedford Inst. of Oceanography
P. O. Box 1006, Dartmouth, Nova Scotia, CANADA B2Y 4A2.  Tel. (902)426-1577
UUCP=..!{uunet|watmath}!dalcs!biome!silvert
BITNET=silvert%biome%dalcs@dalac	InterNet=silvert%biome@cs.dal.ca
