- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I know you can set evironment variables FORTn= to link an external file to a Fortran unit number. However, are there any compiler options I need to specify in order for this to work?
If so do I need to use this option(s) in all code that is used to build an executable? For example, I have a huge library .a file I create and then compile a program source code seprately.
Thanks.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No options are required. This behavior is always enabled. One tricky bit is that the "n" is not zero-filled, so FORT6, FORT15, etc.

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