Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
29285 Discussions

Specify link file location when compiling

deadpickle
Beginner
569 Views
I am using the script to compile my programs:
#! /bin/csh/

echo compiling MineSweep...
ifort -module /mnt/share/mods -c /mnt/share/radar/ms1.1.f90 -I/mnt/share/mods
echo --Done--
echo compiling Mean Wind...
ifort -module /mnt/share/mods -c /mnt/share/narr/wind2.f90 -I/mnt/share/mods
echo --Done--
echo compiling ThOR...
ifort -check all -c thor1.1.f90 -I/mnt/share/mods
echo --Done--
echo Linking...
ifort /traceback -o /home/deadpickle/Desktop/thor1.1 thor1.1.o /mnt/share/mods/wind2.o /mnt/share/mods/ms1.1.o -L/usr/local/lib -lnetcdf -lw3
echo --Done--

I noticed that this does not output the *.o files that I need. Is there a way to specify where I want these files to be output too. I want them to go to the /mnt/share/mods folder with the modules.
0 Kudos
2 Replies
Ron_Green
Moderator
569 Views
-save-temps
0 Kudos
Ron_Green
Moderator
569 Views
-save-temps
opps, skipped the bit about wanting the objects in the same place as the module files.

-o/

ron
0 Kudos
Reply