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

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

Javier_Gonzalez-plat
2,019 Views
Today I installed the last version of my Intel Fortran compiler (Intel Composer XE 2011 Update 1 (package 127) in a Windows 7 (64 bits). I use a command windows (cmd) to compile my programs using a batch files. The procedure to compile is working but not for the link. I have the next message:
ifort: error #10036: unable to run 'link'

If I run link program in the same command window seems that it works...

The same situation is for 32 bits and 64 bits applications...

Any suggestion? At the moment if impossible to create any program in this situation.

I have included the output of the environment variables using set command.

Thanks in advance

Javier Glez
0 Kudos
5 Replies
Steven_L_Intel1
Employee
2,019 Views
I don't see that you included the SET output. Please show the entire command session from the start.
0 Kudos
Javier_Gonzalez-plat
2,019 Views
Sorry, I thought that was included in my previous message.

I have seen double '' before ...Visual Studio 9.0\\CV\... and also in ...Visual Studio 9.0\\Common7... and I don't know if it is important or not.

Thanks in advance
0 Kudos
Steven_L_Intel1
Employee
2,019 Views
The double slashes are harmless.

What is the content of C:\Program Files (X86)\Intel\ComposerXE-2011\bin\ia32\ifort.cfg?
0 Kudos
Javier_Gonzalez-plat
2,019 Views
Only one line:

# This Configuration file may be used for additional switches
0 Kudos
Javier_Gonzalez-plat
2,019 Views
For any reason ifort program don't found the link program...
I use a bat file to compile my program. If I have

ifort /c space_group_info.f90 /O2 /nologo /IC:\CrysFML\Intel\LibC
ifort /exe:space_group_info *.obj C:\CrysFML\Intel\LibC\crysfml.lib

then the compilation if OK but I have the error message
ifort: error #10036: unable to run 'link'

a workaround that I have found is call directly the link program

ifort /c space_group_info.f90 /O2 /nologo /IC:\CrysFML\Intel\LibC
link /out:space_group_info.exe *.obj C:\CrysFML\Intel\LibC\crysfml.lib

and now I have my executable file without problem.

Aparently the problem is the ifort program and I don't know if it is related that I use a spanish version of Windows 7....
0 Kudos
Reply