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

ifort: error #10036: unable to run 'link'

wooosk
Beginner
2,034 Views
Hello

I am trying ot install intel visual fortran 11.1 Intel64 compiler on window 7 x64.
I have visual studio 9.0.
After installation, i tried to test a run ifort hello.for , i got the message that unable to run 'link'.

But when i ran in the window created using 'Fortran Build Environment for applications running on Intel64' option, then executable file generated and worked.. i am not sure how to set up path in where in order to communicate between programs...
The ifortvars_intel64.bat file is shown below...
Does anyone know how to solve this?
your help would be greatly appreciated!!

Sukyung Woo



------------------------------------------------------
Rem Intel Visual Fortran Intel 64 Compiler Professional Build Environment for applications running on Intel 64

echo.
echo Intel Visual Fortran Intel 64 Compiler Professional for applications running on Intel 64, Version 11.1.048
echo Copyright (C) 1985-2009 Intel Corporation. All rights reserved.
echo.

if {%1} EQU {vs2008} (
@call echo.
) else (
if {%1} EQU {vs2005} (
@call echo.
) else (
@call "C:\\Program Files (x86)\\Intel\\Compiler\\11.1\\048\\bin\\intel64\\vsshell2008vars_intel64.bat"
)
)

title Intel Visual Fortran Intel 64 Compiler Professional for applications running on Intel 64, Version 11.1.048 build environment

echo.

SET IFORT_COMPILER11=C:\\Program Files (x86)\\Intel\\Compiler\\11.1\\048

SET INTEL_LICENSE_FILE=C:\\Program Files (x86)\\Common Files\\Intel\\Licenses;%INTEL_LICENSE_FILE%

SET PATH=%IFORT_COMPILER11%\\Bin\\intel64;%PATH%

SET LIB=%IFORT_COMPILER11%\\Lib\\intel64;%LIB%

SET INCLUDE=%IFORT_COMPILER11%\\Include;%IFORT_COMPILER11%\\Include\\Intel64;%INCLUDE%

0 Kudos
4 Replies
Wendy_Doerner__Intel
Valued Contributor I
2,034 Views
You need to invoke the .bat script to set up the environment variables documented in the Getting Started Guide.

One way to set the environment variables prior to invoking the compiler is to "source" the compiler environment script, ifortvars.sh (or ifortvars.csh):


source /bin/ifortvars.sh


where is the directory structure containing the compiler /bin directory, and is the architecture argument listed below.


The environment script takes an argument based on architecture; valid arguments are as follows:


ia32: Compilers and libraries for IA-32 architectures only.
intel64: Compilers and libraries for Intel 64 architectures only.
ia64: Compilers and libraries for IA-64 architectures only.

------

Wendy

Attaching or including files in a post

0 Kudos
TimP
Honored Contributor III
2,034 Views
You can see the exact invocation of ifortvars.bat intel64 by checking the Properties of the command prompt shortcut installed in the start menu.
0 Kudos
wooosk
Beginner
2,034 Views
Thanks for the input.I did as you suggested and got the following message:

"setting environment for using Microsoft Visual Studio 2008 Beta2 x64 Tools.
WindowsSdkDir not found"


What does this error mean?

Please help!!
0 Kudos
TimP
Honored Contributor III
2,034 Views
It looks like the ifortvars.bat is running a vcvars.bat script from a beta version of Visual Studio, which may have expired. Unfortunately, the possibilities include having to remove that Visual Studio. If you don't require C/C++ capability, after removing VS you can install ifort with VS2008 shell; otherwise, you need a full VS such as the 90-day free trial download, including the C++ X64 options and service pack. Once VS is working, you should be able to re-install or repair ifort.
0 Kudos
Reply