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

error could not find 'cl'

douglasfunk
Beginner
2,134 Views
I am a complete newbie on the Intel Fortran Compiler so please be patient with me. I have this project by default. I was trying to go through what the last gentleman installed, but there is no documentation just files on a CD

New install of Windows 7 Pro x64; Intel Fortran Complier 8.1 EM64T Edition; Microsoft Platform SDK (3790.1830). Also installed is MS Visual C++ 2005 , 2005 (x64), and 2008 (x64) all redistributable versions.

Most fortran programs compile and run, but I ran into one that gives me this error:

ifort: error: could not find 'cl'
fortcom: Severe: no such file or directory.

What am I missing? What have I installed wrong?

Thanks in advanced
0 Kudos
15 Replies
Steven_L_Intel1
Employee
2,134 Views
Hmm - lots of stuff here.

First, Intel Fortran 8.1 never was supported on Windows 7. That version is also from 2004-2005.

Second, it is not clear to me what you mean by "all redistributable versions". Did you actually install Microsoft Visual C++, or just the redistribiutables? Version 8.1 requires that Visual C++ 2002 or 2003 be installed.
0 Kudos
douglasfunk
Beginner
2,134 Views
Thanks for a quick reply.

No I did not install Visual C++ they were just redistributable versions.

I am assuming the best thing to do is upgrade everything.

I just downloaded Intel Fortran Complier 11 evaluation version. Also have Visual Studio C++ 2008 Express Edition. Do I need the SDK of that also?

Thanks again Steve.
0 Kudos
Steven_L_Intel1
Employee
2,134 Views
If you have Visual C++ 2008 Express Edition, you don't need the Windows SDK. You will be able to use the compiler from the command line only for the evaluation version in that combination. If you buy the product, it will include everything you need to use Fortran from within Visual Studio.
0 Kudos
douglasfunk
Beginner
2,134 Views
I have installed Visual Studio C++ 2008 Express Edition and Fortran Compiler Pro Edition 11.1.067.

When I started the Fortran Install it said I had to enter the full path for the Microsoft Development product. I continued the install and when it asked I put in C:\Program Files\Microsoft SDKs. I also checked the box that asked to update the environment.

I now get "ifort " is not recognized as an internal or external command. I checked the path statement i guess im missing something else.

Thanks Steve.
0 Kudos
TimP
Honored Contributor III
2,134 Views
I am assuming you opened up a window by the ifort command prompt shortcut, which invokes ifortvars.bat.
The installation must fill in the blanks in ifortvars.bat files so as to set up the PATHs for both ifort and, by a CALL to vcvarsxx.bat (the same one as in the Visual Studio command prompt shortcut), for CL. If yours didn't get set up right, you might be able to get a better clue about which "full path" it required at the installation prompt, or even fix it by editing it yourself.
0 Kudos
douglasfunk
Beginner
2,134 Views
Thanks Tim

But I have no idea what that means or how to do it so no I did not "open up a window by the ifort command prompt shortcut".

When I try to run the "Fortran Build Environment......." i get "C:\Program Files\Microsoft SDKs\Windows\v6.0A\SetEnv" is not a recognized as an operable or external command"
0 Kudos
TimP
Honored Contributor III
2,134 Views
The command prompt shortcut is installed on the Start menu all programs>intel software development>fortran>fortran build environment
There are selections for both 32-bit and 64-bit, if you installed both. Properties will show you how they invoke ifortvars.bat.
During the install, there is an option to add stuff to the main windows path environment, but this creates problems with upgrades, .... and apparently you didn't accomplish that step.
It looks like you didn't guess exactly how your Microsoft path had to be quoted during installation so that the ifortvars.bat would be set up to call vcvars. As I said, looking in there, and looking at the path in the corresponding VC start menu shortcut, would give you a clue about what was needed, so you could repair it.
0 Kudos
douglasfunk
Beginner
2,134 Views
Ok it looks like i'm to a point where i need the x64 Compiler and tools for Visual Studio.

What I guess I need now is to know which Intel Compiler product to purchase.

Windows 7 x64 and they are running and compiling 64 fortran programs. I understand the evaluation version of the Intel Visual Fortran Compiler Professional 11.1 doesn't have this capability.

If I but this version do I have to buy Visual Studio 2008 Standard?

Thanks Tim and Steve for all your help.
0 Kudos
Steven_L_Intel1
Employee
2,134 Views
The evaluation version does have this capability - but it is missing the Microsoft tools needed. For evaluation, you have to get those tools some other way, such as installing a trial version of VS2008. If you buy the product, it includes the necessary Microsoft tools. There is only one product for all the Windows platforms, 32-bit and 64-bit. You do not have to buy Visual Studio.
0 Kudos
TimP
Honored Contributor III
2,134 Views
You can run with VS2008 90-day trial version. Before that expires, you can try VS2010 with the next release of ifort, so you can decide which VS to buy. ifort windows license will cover all versions, including new and old ones, for a year. Purchased ifort also provides VS2008 shell, so you can do Fortran development without acquiring VS separately, if you don't need C or C++.
0 Kudos
douglasfunk
Beginner
2,134 Views
Ok I purchased Intel Fortran Compiler Professional Edition and using the Microsoft Visual Studio 2008 Shell. When I run my fortran from the command line i get "ifort: error #10037: could not find 'link'. I added "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\Bin" to my path. Now I get "LINK : fatal error LNK1104: cannot open file 'ifconsol.lib' which seems to be another PATH problem.

Is there a simple way to fix all these PATH problems. I have to install this on about 20 workstations.
0 Kudos
Steven_L_Intel1
Employee
2,134 Views
Use the supplied shortcut for a "Fortran Command Prompt" to begin your command session, or execute ifortvars.bat (with either ia32 or intel64 as an argument, depending on target platform.) This is found in the compiler BIN folder. If you just open an ordinary command prompt you won't have the required environment.
0 Kudos
douglasfunk
Beginner
2,134 Views
thanks again Steve

now i get "LINK : fatal error LNK1104: cannot open file 'LIBC.lib' which i cannot find anywhere on this PC
0 Kudos
Steven_L_Intel1
Employee
2,134 Views
You are linking to a library built against MSVC 2003 or earlier. Microsoft removed libc.lib in VS2005. You will need to recompile whatever sources make up that library.
0 Kudos
douglasfunk
Beginner
2,134 Views
Thanks to Tim and Steve for all of your help. I think the engineers here are going to recompile all the sources that are not .exe's and move forward from here. Maybe even C or C++ development of these programs also.

Thanks again.
0 Kudos
Reply