On Wed, Feb 28, 2024 at 10:42:36PM +0000, Ken Woolridge wrote:
> A little background: I have Intel's Fortran90 compiler which
> I used for years. However, I recently had to reinstall it
> and found that the key was no longer valid. Intel did not
> have the decency to return my emails so I looked for another
> Fortran90 compiler.
Intel's OneApi is available for download and use without
a license key. This isn't the forum to discuss how to
go about getting a useable OneApi.
> I am in the process of testing gfortran. However, when I
> compile a module called MOD_WIN_APIS containing interfaces
> to Microsoft API functions I get the error:
>
> Error: Derived type '{whatever}' at (1) is being used before it is defined
>
> I have defined these types in another module named MOD_TYPES
> which is compiled prior to MOD_WIN_APIS. MOD_WIN_APIS uses MOD_TYPES
> (with the statement "USE MOD_TYPES") prior to any interfaces being defined.
>
> Why am I getting this error when the types are defined???
Stab in the dark. mod_types.mod is another directory. Try
adding the "-I. -I${path_to_mod_types.mod}" to your command line.
--
Steve