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

Linking Fortran and Visual Studio after installation

jcb43
Beginner
822 Views

Hi. I just got Intel Fortran builder version 11.1 and Microsoft visual studio 2008 installed on my computer. However I believe I did this the wrong way round, installing Intel before visual studio, and as a result the two programmes arent linked. This means that when ever I try to compile a fortran file in Intel using the ifort command I get Ifort error error #10037: could not find link . I think this requires me to move the paths to the library (.lib) and executable (.exe) files for Intel fortran and visual studio into the environmental variables. However there are a lot of these files, so firstly am I on the right track, secondly do I need to path all these files into the environmental variables or is there a quicker way? (Id rather not reinstall Intel unless its the only way as Id have to get the I.T. services to do that).

Thanks.

0 Kudos
4 Replies
TimP
Honored Contributor III
822 Views
The repair option for ifort installation should take care of it. If somehow you don't have privilege to run the repair (from add/remove menu or from the install icon in the ifort download folder), but have permission to fix up the \bin\ia32\ifortvars_ia32.bat and \bin\intel64\intel64_vars.bat, those must @call the corresponding vcvars .bat files in VS2008, so that all the VS2008 paths are set, prior to adding the ifort path settings.
Either way, I think you need some run-as-administrator privilege in Vista or Win7. If you don't have this, maybe you should have installed ifort in a place where you have rights, or get rights to the \Intel\ installation directories. How else can you install upgrades or license renewals? Likewise, you really need to be able to apply Microsoft patches to VS.
Linker path can also be set up by adding the -Qlocation,link, option along with your other chosen global ifort options in ifort.cfg e.g.
-Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin\amd64"
-assume:minus0,protect_parens,buffered_io,byterecl
-Qprec-div -Qprec-sqrt

0 Kudos
Steven_L_Intel1
Employee
822 Views
I suggest running the repair tool in the attached ZIP - it must be run as Administrator on Vista and Win7. It should do the trick as far as Visual Studio is concerned. If you are building from the command line, you will need to uninstall and reinstall Fortran.

VS2008 does not explicitly need to be run as administrator.
0 Kudos
TimP
Honored Contributor III
822 Views
The full uninstall and reinstall can be done from the directory in \Intel\Download\, if that hasn't been disturbed.
0 Kudos
jcb43
Beginner
822 Views
Thanks for all the advice, since I do unfortuantly need the administrator to fix this I think it would be quickest to get them to uninstall and reinstall the programe. Thanks.
0 Kudos
Reply