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

Having trouble compling from the command line

awestgolder_com
Beginner
520 Views

Hello,

I have Visual Fortran Compiler Version 9, and Visual Studio 2008. But I still don't seem to be able to compile my fortran code from the command line. I seem to be missing critical components like the linker from C++. I am feeling like quite the tool, since I have been writing and compiling fortran codes for a long time, but am stumped by this. I have installed the C++ 2008 Express Edition, which seems to have a linker, but this has not fixed the problem. Any help would be appreciated.

Thanks.

0 Kudos
2 Replies
TimP
Honored Contributor III
520 Views


First, check the vcvars path in the ifortvars.bat in your installation. It shouldstart the same VS.bat setupwhich is in your VS command prompt window shortcut properties, e.g.

@call "C:Program FilesMicrosoft Visual Studio 9.0Common7Toolsvsvars32.bat"

If you have conflicting link programs installed, you would need also to fill in your ifort.cfg. Mine has

-Qlocation,link,"C:Program FilesMicrosoft Visual Studio 9.0VCbin"

-assume:protect_parens,buffered_io,byterecl

-Qprec-div -Qprec-sqrt

in order to specify the path for VS link, and set some default command line options.

0 Kudos
Steven_L_Intel1
Employee
520 Views

Intel Visual Fortran 9.0 does not support nor recognize Visual Studio 2008. The minimum compiler version for that is 10.1.019.

0 Kudos
Reply