From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by sourceware.org (Postfix) with ESMTPS id 057E13858D39 for ; Wed, 28 Feb 2024 23:02:34 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 057E13858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=troutmask.apl.washington.edu Authentication-Results: sourceware.org; spf=none smtp.mailfrom=troutmask.apl.washington.edu ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 057E13858D39 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=128.95.76.21 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709161356; cv=none; b=dEjbHldYhf8/gOcvy+IuqOUAcpQcXtGO/DfPv6HZrQPllS44WxShhDsxPJ/3idsHdSWYECswTC6OFeHPMThlJQNCLrsK8zPqn4s5MitJnvwJGecbd8iBGX7W3SVdPoMW7h7E123t7YT9+dBBzklLsxNLc+5/k1P8qMzZGmsbTJ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709161356; c=relaxed/simple; bh=bz9L+WntF+OiHsY6nVKef4Wkfy8rvxZXEVUM9F5C+Wc=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=uZ6cqgoq15q1o0ULYjAgSbPAUjGK4VKgn40zsV7pLiPG18gJX2VDxeDWjcNXdaEcrUTEsJNLASmdJ5gRxNcrwqXwXOuhTl1dpVZncGby1EP/OCGf274z2XOoZtbFr6nCQJqWl0i/sB9+4h2BlOc+tJ7V3GDhwtR6EqRaLomRvrI= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.17.1/8.17.1) with ESMTP id 41SN2XoT018126; Wed, 28 Feb 2024 15:02:33 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) DKIM-Filter: OpenDKIM Filter v2.10.3 troutmask.apl.washington.edu 41SN2XoT018126 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=troutmask.apl.washington.edu; s=troutmask; t=1709161353; bh=bz9L+WntF+OiHsY6nVKef4Wkfy8rvxZXEVUM9F5C+Wc=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=LdO7EjC5BTllAnSxnCtHhDBOPIBB+QckMIZPhfvk2TLBkoB7P4Rzt2cLmh/utzH+8 7z+pGj4RwU+SEXU4+NJQUjDCZJRdjU8p37bKCDRWSr8IlV+uEVUwXYhYoJkSjQ87LJ ICFtqsMnVTuRFQMKNwAvSw/WzubEz8f5oV7QdsYux6Ofludbkt6yhvsrHWwt5r+dUA MtizdgdzyZGEGz2A2Kl3NQv2tPb0yXisGtlm1aCEmRX+dLtHKYpTudmvTzbkcgike/ SAAn6h5KsKoF0mp/x1xx55+693g3Bz9ybP/HCNibEx7BpdPpn9yIq2iuChhdkAqBw9 w6UOt4Xz7nJtA== Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.17.1/8.17.1/Submit) id 41SN2XhK018125; Wed, 28 Feb 2024 15:02:33 -0800 (PST) (envelope-from sgk) Date: Wed, 28 Feb 2024 15:02:33 -0800 From: Steve Kargl To: Ken Woolridge Cc: "fortran@gcc.gnu.org" Subject: Re: Question regarding compiling modules Message-ID: Reply-To: sgk@troutmask.apl.washington.edu References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_INVALID,DKIM_SIGNED,KAM_DMARC_STATUS,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: 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