Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!caen!spam.engin.umich.edu!oliveria From: oliveria@caen.engin.umich.edu (ROQUE DONIZETE DE OLIVEIRA) Newsgroups: comp.lang.fortran Subject: How to use -I to specify an alternate include directory in f77 Keywords: f77, INCLUDE Message-ID: <1991Apr18.055611.6793@engin.umich.edu> Date: 18 Apr 91 05:56:11 GMT Sender: news@engin.umich.edu (CAEN Netnews) Organization: The University of Michigan, Ann Arbor Lines: 37 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. spam% cat ~/nodes.cbl PARAMETER (MaxNode=10000) spam% pwd //spam/sys/node_data/tmp spam% cat ~/nodes.cbl PARAMETER (MaxNode=10000) spam% cat j.F INCLUDE 'nodes.cbl' DIMENSION L(Maxnode),F(Maxnode) C Do some calculations STOP END spam% f77 -c -I/users/oliveria j.F j.f: (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 ? Or is it just another bug. On the apollos the f77 compiler is "Fortran 77 compiler 68K Rev 10.8(190)" Thanks. Roque Oliveira oliveria@caen.engin.umich.edu