Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29253 Discussions

ifort option to specify object files directory

suresh_p_1
Beginner
1,538 Views

I have a project that is created using visual studio. I have following structure (as seen in the windows explorer)

helloworld.vcproj

Code

Release

Debug

All the source code is the "code" folder. 

a) I would like to compile the code folder and the object files and .exe should go to Release folder

could u someone tell me what should be the options for ifort?  

could someone tell me what should be the options to compile the code with debug option and how to debug program in command line?

I will come to the makefile later

0 Kudos
1 Reply
Steven_L_Intel1
Employee
1,538 Views

If you have a .vcproj, that won't build a Fortran project.

You specify the "Intermediate directory" Under General for where the objects go, and "Output directory" for the executable.

From the command line, use /obj: to specify the object file location.

To build with debug from the command line, add /debug to the ifort command. You can't debug from the command line, but you can run devenv.exe from a command prompt to start a program under the debugger - use devenv /? to see options.

0 Kudos
Reply