Newsgroups: comp.lang.fortran
From: nos...@see.signature (Richard Maine)
Date: Thu, 8 May 2008 12:12:44 -0700
Local: Thurs, May 8 2008 3:12 pm
Subject: Re: circular module dependency
Gene Wagenbreth <genewxxx@isi-OS4> wrote: Only the fact that the code is nonstandard and that such hacks are > module A uses module B because it calls a routine in module B > module B uses module A because it calls a routine in module A > neither compiles because each needs the other mod file. > So in A I comment out the use of B and the calls to B. I compile > This is silly, ugly, etc, but it works. > What am I missing ? highly compiler dependent. The "it works" is a bit of an overstatement, which needs to be qualified with particular compiler details, possibly including the version number. Which is to say that this is asking for future trouble. I'm trying to recall the ways for working around this problem. Of Another way is to throw an external procedure into the mix. That's a bit -- You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||