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

Ifort not recognised in makefile run in command prompt window

anthonyrichards
New Contributor III
350 Views
I have been supplied with a makefile that should build a DLL for me that is compatible with a third party app.
When I run it in project directory from within the VS command prompt window, it bombs out with
'ifort' not recognised as an internal or external command.

I gathered from the IVF composer help that when opening the VS command prompt that it took care of initializing all the required environment variables. Clearly I was misinformed.
What is the prescribed method of getting nmake to work on teh command line?

TIA

P.S> I NEVER use the command line to build, so NMAKE etc. is all new to me. I would rather , if possible, convert the makefile stuff into project properties in the VS environment. Especially as the linker flags are extensive, there are loads of .OBJ files and I see a makefile section on Fortran module dependencies, which I have no wish to get into.
0 Kudos
1 Reply
mecej4
Honored Contributor III
350 Views
Depending on what parts of Visual Studio, Intel C and Intel Fortran you have installed, and whether you have Visual Studio Shell or the full Visual Studio, you may have more than one Command Window accessible through the Start Menu. You have to choose the one suited for Fortran development.

Look for something resembling

Start->Intel Parallel Studio XE 1022
->Command Prompt
->Parallel Studio XE with Intel Compiler XE v12.1
->IA-32 Visual Studio 2010 mode
0 Kudos
Reply