- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just found this forum - looks great!
In Windows, if I want to compile several fortran files at once and send them to a different folder, I do so by specifying /FoOutputDir.
I do not see an option for this in Linux. Is it impossible to specify an output directory in Linux? Is there some workaround so I can still pass several files to the compiler at once and write the *.o files in a separate directory?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no /Fo equivalent in Linux but you can use the -o option with a sub-directory specified.
For example:
ifort -c -o
Where
If your program uses modules, you can place those using -module similar to the /Fo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Another possible solution is to 'cd' into the object file destination sub-directory and then use a relative or absolute path to the source files. You would not need the -o option in this case.
To compile all *.f90 source files, use something like: ifort -c
The -o option is convenient for makefiles.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page