- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can a module that is being usedin a USE statementbe placed in a library or in another directory? If so, what is the syntax for accessing the module? For example,
USE myModule
Can I place myModule.f90$mod in a library or in aother directory?
Thanks,
Kin
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The .mod or .f90$mod (VMS) file is located by the compiler as if it were an INCLUDE file, and uses the same paths. It can be in a different folder, as long as it's one of the places the compiler looks for INCLUDE files.
The object module (.obj) generated when the module is compiled can be placed in a library, and the linker will follow its normal rules for finding it.

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