Re: Newbie making a dumb mistake but can you help?



JustMe2 <do_mail@xxxxxxx> wrote:

guess I'll have to make a make file.

I'm not quite sure how that relates to the stated problems, but ok.

On rereading your original post in this thread, two issues occur to me.
Perhaps you were just wording things sloppily, but then perhaps not, as
both of these are errors I have seen people make.

1. You talked about how you "write and compile the .mod files." Do you
mean that literally? If so, that's an error. A .mod file is not
something you write and compile. To compile a module, you put the module
source code in a .f90 file just like any other Fortran source. The
compiler will make the .mod file during compilation. If you actually
write and try to compile a file with a .mod name, I'm not sure what will
happen, but odds are that it won't be good. Don't do that.

2. You also talked about putting interfaces various places. No, don't do
that for module procedures. If you try to do that, it will cause
problems. The USE statement provides all the interface information for
procedures in the module. If you try to also write an interface body,
that will not work.

As a rough approximation. since you imply that you are familliar with
other languages, the .mod file is somewhat like a C header file, except
that the compiler automatically writes it for you. The analogy isn't
perfect, but its a reasonable first approximation.

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • Re: creaping coupling......
    ... but it is a more strict contract than required. ... "I am capable of implementing things via interface XYZ i.e. ... consider specifically that we compile, deploy and then we delete a method to ... IWriteable pipe = new Pipe; ...
    (comp.object)
  • Re: ActiveX.exe question
    ... > the public interface still need registered in order to use them. ... Compile AXExe.exe against a Share on the TestPC ... Open a Standard-Exe-Project on your DevelopPC and name it AXTest ... Compile AXTest.exe against the Share on the TestPC ...
    (microsoft.public.vb.general.discussion)
  • Re: RAD vs. performance
    ... thus they fulfull the number interface and can be used interchangeably. ... I'm not about to ditch statically typed languages ... Because you need whole-program optimisation for a start. ... The benefits of static typing come at compile time. ...
    (comp.lang.misc)
  • Re: Is Direct3D a rip-off of OpenGL?
    ... People who think that a method change in a NEW INTERFACE in DirectX really ... Moving to use a NEW INTERFACE, ... > ago simply isn't going to compile with the latest SDK, ...
    (comp.graphics.api.opengl)
  • Re: Variable uses a type not supported in Visual Basic (Error 458)
    ... > Microsoft Visual Basic for Applications Software Development Kit ... > interface in a Visual Basic class, ... > generate libraries that use a Visual Basic- or Visual Basic for ... > Rebuild your type library by pressing CTRL+F7 or selecting Compile ...
    (microsoft.public.vb.bugs)