forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

.MOD files

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General
View previous topic :: View next topic  
Author Message
Wolfgang Hoeppner



Joined: 05 Dec 2006
Posts: 8
Location: Sibiu / Romania

PostPosted: Thu Dec 28, 2006 7:11 pm    Post subject: .MOD files Reply with quote

Dear users of FTN95,

I am a new user of FTN95 (personal edition) and have at the moment the
following problem:

In the documentation one finds the statement that FTN5 looks for .MOD
(MODULE) files in the current directory, then in the directory named in the
MOD_PATH environment variable, then in the directory named in the /MOD_PATH
option.

My question is: How can one build a .MOD file from a Fortran file (.FOR,
.f90, .f95) a) from within Plato 3, b) if this should not be possible, from
the command line?

With thanks for your help and best wishes,

Wolfgang Höppner.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 7924
Location: Salford, UK

PostPosted: Fri Dec 29, 2006 10:29 am    Post subject: Reply with quote

.MOD files (one for each MODULE) are automatically created when a source file (containing MODULEs) is compiled. This is in addition to the .OBJ file that the compiler creates.

The .MOD files contain header information that is needed by the compiler whenever a USE statement appears in the code. The .OBJ files (not the .MOD files) are used at link time to create the executable, LIB or DLL.
Back to top
View user's profile Send private message AIM Address
jjgermis



Joined: 21 Jun 2006
Posts: 404
Location: Nürnberg, Germany

PostPosted: Wed Nov 14, 2007 4:30 pm    Post subject: Linking .obj files Reply with quote

Hi Paul,

when I set the environment variable mod_path the compiler finds the modules I specified with the USE statement. But where does the compiler search for the .obj files when I link the program.

My project is handled with Plato. When linking the error is as follows: \win32\<objectfile.obj> does not exist. This happens altough the .mod and .obj files are in the directory specified by mod_path.

I think the solution is very simple. However, it is difficult to understand the use of libraries and especially the implementation of them. A simple example in the documentation will be very helpful.

Jacques
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> General All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group