This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: -iquote Is not finding the include file
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Jason Clark <jclark at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 27 Aug 2012 19:13:04 +0100
- Subject: Re: -iquote Is not finding the include file
- References: <CADV0aap1U1joDS9qDNTuPtTwRC-7dKYM77jzSnbzgC__bheTsA@mail.gmail.com> <CADV0aapZTiMZP8v_7OEAb6dub_hVOC5L-jUKSgjZyYLLjdToMA@mail.gmail.com>
On 27 August 2012 19:03, Jason Clark wrote:
> Thank you for your help in advance, I am absolutely new to gfortran
> and am now stuck. I am using Windows Vista and attempting to compile
> some code that has #include "..." statements that reference a file not
> in the same location as the .f file. The command I input is as
> follows:
>
> gfortran -iquote
> c:\programfiles\aspentech\aspenplus2006.5\engine\commons
> -xf77-cpp-input usrkpg2.f
>
> The error I receive is as follows:
>
> usrkpg2.f:66:0: fatal error: rcst_rcstri.cmon: No such file or
> directory compilation terminated
I don't know how gfortran uses the preprocessor, but you would usually
use -I to find headers, not -iquote, which is for more specialized
uses. Does using -I work?