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

Linker error ifort: error: could not find 'Bin'

as_senthil
Beginner
698 Views
Hi All,
I installed licensed "Intel Visual Fortran Compiler 9.0 for Windows". If i compile the program it creates the .OBJ file only and it shows the error
ifort: error: could not find 'Bin'
Environment variables are set correctly. I am not installed visual studio .net, I am compiling the fortran program in command line only.....
Pls tell me how to solve this problem
0 Kudos
5 Replies
TimP
Honored Contributor III
698 Views
You must have some version of Microsoft C, for example, Visual C++ 2003 Toolkit for 32-bit ifort. For those versions which aren't supported with automatic installation, you must edit the installed ifortvars.bat and ifort.cfg files, to incorporate the corresponding paths to your C installation. 2003 Toolkit installation has been covered several times previously in this forum. The message you quote appears to come from ifort.cfg, which requires the path to the folder where Microsoft LINK is installed, e.g.
-Qlocation,link,"c:program filesMicrosoft Visual C++ toolkit 2003Bin"
0 Kudos
as_senthil
Beginner
698 Views

Thanks......

But in my system I installed Microsoft visual studio 6.0

so how to fix this error

ifort: error: could not find 'Bin'

0 Kudos
as_senthil
Beginner
698 Views

Hi,

I edited the ifort.cfg as follows

# Path to Microsoft Visual C++* .NET 8.0 linker
-Qlocation,link,"D:AppsMicrosof tvisual studiovc98Bin"

-Qoption,link,/nodefaultlib:uuid.lib

and in the ifortvars.bat file

@call "D:appsmicrosoft visual studiovc98BinVcvars32.bat"

But it gives the error

ifort: error: unable to run 'D:AppsMicrosof tvisual studiovc98Bin'

how to solve this

0 Kudos
Steven_L_Intel1
Employee
698 Views
First, use of Visual Studio 98 is not supported. It may work for some applications.

Second, if you have accurately reported the error message, you have incorrectly specified the path.
0 Kudos
Lorri_M_Intel
Employee
698 Views

First - let me second what Steve said; it is unsupported to run Intel Visual Fortran with Microsoft Visual C V6.0. If your program works, good. If it doesn't, we can't help you.

That said --- I noticed a typo in your reply. Is this same typo actually in your .cfg file?

-Qlocation,link,"D:AppsMicrosof tvisual studiovc98Bin"

^^^ note where the space is

- Lorri

0 Kudos
Reply