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

IVF 9.1 with C++ from VS 2008 or VS 2010

ratel__gilles
Beginner
415 Views

Just a question.

Here I have IVF 9.1 and VS2008 and VS2010 (I have also VS2005, but I prefer not install, and prefer use only VS2010), My question is: possible use C++ from VS2010 (or VS2008) with ifort command?

Now If I use Build environnement (dos) for fortran I-32 I get error:

| Intel Visual Fortran Compiler 9.1.024 Build Environment for 32-bit applications
| Copyright (C) 1985-2006 Intel Corporation. All rights reserved.
|
| Unable to find Microsoft Visual C++ 6.0 or better. <=== PROBLEM
| Intel Visual Fortran Compiler for 32-bit applications will not function properly.

If I look ifortbars.bat

| REM @call "\\Bin\\Vcvars32.bat"
| echo Unable to find Microsoft Visual C++ 6.0 or better.
| echo Intel Visual Fortran Compiler for 32-bit applications will not function properly.
| title Intel Visual Fortran Compiler 9.1.024 Build Environment for 32-bit applications
! ...

I change for
| @call "C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC\\bin\\Vcvars32.bat"
| ...

But if I test:
ifort -o hello Helloword.f90

I get error
ifort: error: unable to run '\\\\Bin'

??

do you have hint? a good ifortvars.bat for IVF 9.1 and VS2010?

Thanks



0 Kudos
4 Replies
mecej4
Honored Contributor III
415 Views
"My question is: possible use C++ from VS2010 (or VS2008) with ifort command?" -- No, because "ifort" is a Fortran compiler.

If you want to compile C source code, you need to obtain and install a C compiler, such as Microsoft's Visual C++, Intel's C++, etc.

Even the free downloadable Microsoft VC++ Express compiler is adequate.

The presence of the string "" in the startup batch file is a telltale sign that the Intel Fortran installer was unable to find an installed C compiler.

Check the list of prerequisites for installing Intel Fortran. If you do not satisfy some of them, but proceed with the installation, some functionality will inevitably be missing.
0 Kudos
ratel__gilles
Beginner
415 Views

Yes ifort is a fortran compiler.

I don't understand why the error message:
Unable to find Microsoft Visual C++ 6.0 or better
and
ifort: error: unable to run '\\Bin'

Request for C++ is mysterious for me...

The easiest way is to reinstall. (?)
0 Kudos
TimP
Honored Contributor III
415 Views
The visual studio express C++ will be sufficient to support the 32-bit ia32 version of ifort for command line usage only (probably no debugger). Unless you have first installed a supported version of VS2003 or newer, the ifort install won't be automatic.
0 Kudos
Wendy_Doerner__Intel
Valued Contributor I
415 Views
I should note the 9.1 compiler did not work with Microsoft* VS 2008. You will have to upgrade to a newer version of our compiler to use Microsoft VS2008 (also none of our compilers currently work with MS VS2010).

------

Wendy

Attaching or including files in a post

0 Kudos
Reply