- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, everybody!
I do not understand much about computers, but would like to know something. I try to use a module called Cantera, but have the following error message after compiling the main program:
Error: This is not a DEC Fortran module file. [CANTERA]
use Cantera
------------^
use Cantera
------------^
Could anybody please help me? Thank you.
Sincerely,
Felipe
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Module files are precompiled declarations. The .mod file (this is usually the file type) is compiler-specific - compiler A will not read a .mod file generated by compiler B.
My guess is that you are using Compaq Visual Fortran, or perhaps a very old version of Intel Visual Fortran. The Cantera software you got was built for use by some different compiler. You will need to get a version of Cantera built for use with your compiler, or switch compilers to one that is compatible.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - felipeabrao
Felipe,
a module is a program unit used to define global data in a single place. It contains data object declarations, derived types, procedure and procedure interface definitions etc. A program (unit) that accesses the module can make use of all module content.
Digital Fortran comes with a module wizard that generates F90 modules that makes it easy to call automation services from a fortran program; see "using com an automation objects" in the dec programmers guide.
I assume you link your application against a precompiled library compiled with another fortran compiler that is creating a different module interface. Try to get hold of the source of this module, include it into your code and recompile.
Good luck
Martin
Hello, everybody!
a module is a program unit used to define global data in a single place. It contains data object declarations, derived types, procedure and procedure interface definitions etc. A program (unit) that accesses the module can make use of all module content.
Digital Fortran comes with a module wizard that generates F90 modules that makes it easy to call automation services from a fortran program; see "using com an automation objects" in the dec programmers guide.
I assume you link your application against a precompiled library compiled with another fortran compiler that is creating a different module interface. Try to get hold of the source of this module, include it into your code and recompile.
Good luck
Martin
Hello, everybody!
I do not understand much about computers, but would like to know something. I try to use a module called Cantera, but have the following error message after compiling the main program:
Error: This is not a DEC Fortran module file. [CANTERA]
use Cantera
------------^
use Cantera
------------^
Could anybody please help me? Thank you.
Sincerely,
Felipe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - felipeabrao
Hello! I would like to thank you for your help! Yes, I use Visual Fortran 6.0, but I did not have the .mod file for Cantera. I friend of mine gave me hers. Before that, the errors were:
Could not find the file Cantera.mod.
and
Error: Error in opening the Library module file. [CANTERA]
use Cantera
------------^
Error executing df.exe.
use Cantera
------------^
Error executing df.exe.
I will try to follow your tips. Thank you again!
Felipe

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page