From: Ken Woolridge <kwwoolridge@hotmail.com>
To: "fortran@gcc.gnu.org" <fortran@gcc.gnu.org>
Subject: Question regarding compiling modules
Date: Wed, 28 Feb 2024 22:42:36 +0000 [thread overview]
Message-ID: <SN7PR11MB667815D31EF5D45F04BDF483B5582@SN7PR11MB6678.namprd11.prod.outlook.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 953 bytes --]
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.
I found something called FTN95 (British, I believe) but their linker couldn't find any assembler routines even though they were placed
in the library.
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???
Thank you,
Ken
next reply other threads:[~2024-02-28 22:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-28 22:42 Ken Woolridge [this message]
2024-02-28 23:02 ` Steve Kargl
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=SN7PR11MB667815D31EF5D45F04BDF483B5582@SN7PR11MB6678.namprd11.prod.outlook.com \
--to=kwwoolridge@hotmail.com \
--cc=fortran@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).