Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
1 View

Link VS2008 with Intel Fortran Compiler10.1

Hi, I am trying to compile my Fortran code with VS2008. I installed both program, but I figured out that my VS does not recognize the fortran.

I tried to follow what exactly said in the following website:

https://software.intel.com/articles/troubleshooting-fortran-integration-issues-with-visual-studio/

but I've got an error again. the point is in VS2008 I dont have Intel Fortran folder. Also, in VS2005, which is installed along with fortran compiler, when I try to run with command prompt, I got this message: \vsvar32.bat is not recognized and devenv.bat is not recognize.

 

The point is I have to run fortran with VS2008 as I am going to link both of them to my LSDYNA finally.

I would be appreciated if anyone can help me with this problem.

Ali

 

0 Kudos
14 Replies
Highlighted
Black Belt
1 View

That combination was

That combination was supported. Make sure that Fortran is installed after VS2008. I would suggest uninstalling and reinstalling Intel Visual Fortran.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos
Highlighted
1 View

Hi Steve,

Hi Steve,

I did it several times. but I've got the same result.

0 Kudos
Highlighted
New Contributor II
1 View

How did you open a console? 

How did you open a console?  Did you use Tools > 'Fortran command prompt' in VS 2005?

If you don't see that option (or something with a similar name) under Tools I can show you how to create it.

Gib

0 Kudos
Highlighted
1 View

Gib,

Gib,

Lets say this first.

When I install VS2008 and then ifort 10.1, VS2005 will be installed along the ifort. But my question is that, shouldn't I see the fortran compiler in VS2008 instead of S2005? I can see ifort module in VS2005,  but not in the VS2008 which I installed it at the beginning. I need those because finally I want to link them with LSDYNA!

But about your question, in 2005 of VS , first i create a new project and I address my fortran code, but it didn't recognize it. I think I can create a "hello world!" command in VS2005, but it did ot recognize my own fortran which I want to compile it though.

Ali

0 Kudos
Highlighted
New Contributor II
1 View

I'll leave the question of

I'll leave the question of installation to others.  I was addressing this: "in VS2005 ... when I try to run with command prompt, I got this message: \vsvar32.bat is not recognized and devenv.bat is not recognize."  You can test the compiler at the command line after first opening a console (Command Prompt window) with the required environment variables set.  The simplest way to do this is from the Tools menu in VS2005.  I am offering to show you how to set the required tool, if you don't have it already.

I don't understand how you can create a "hello world" program if you can't compile your own program.

0 Kudos
Highlighted
1 View

Thanks Gib,

Thanks Gib,

Yes, I'll be appreciated if you show me how to set the required tools. Then I'll describe how run 'hello world'.

 

0 Kudos
Highlighted
Black Belt
1 View

In VS2008, select Help >

In VS2008, select Help > About. Then click Copy Info and paste the result into a reply here. This may help us understand where the problem is.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos
Highlighted
1 View

OK Steve,

OK Steve,

Here you are,

Thanks

Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
Version 3.5 SP1

Installed Edition: Professional

Microsoft Visual Basic 2008   91605-270-6283781-60150
Microsoft Visual Basic 2008

Microsoft Visual C# 2008   91605-270-6283781-60150
Microsoft Visual C# 2008

Microsoft Visual C++ 2008   91605-270-6283781-60150
Microsoft Visual C++ 2008

Microsoft Visual Studio 2008 Tools for Office   91605-270-6283781-60150
Microsoft Visual Studio 2008 Tools for Office

Microsoft Visual Web Developer 2008   91605-270-6283781-60150
Microsoft Visual Web Developer 2008

Crystal Reports    AAJ60-G0MSA4K-68000CF
Crystal Reports Basic for Visual Studio 2008


Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB944899)   KB944899
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/944899.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB945282)   KB945282
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945282.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946040)   KB946040
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946040.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946308)   KB946308
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946308.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946344)   KB946344
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946344.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946581)   KB946581
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946581.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947171)   KB947171
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947171.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947173)   KB947173
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947173.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947180)   KB947180
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947180.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947540)   KB947540
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947540.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947789)   KB947789
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947789.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB948127)   KB948127
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948127.

Microsoft Visual Studio 2008 Professional Edition - ENU Service Pack 1 (KB945140)   KB945140
This service pack is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945140.

Microsoft Visual Studio 2008 Professional Edition - ENU Service Pack 1 (KB947888)   KB947888
This service pack is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947888.

Microsoft Visual Studio 2008 Professional Edition - ENU Service Pack 1 (KB948484)   KB948484
This service pack is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948484.

Microsoft Visual Studio 2008
Version 9.0.30729.1 SP
Microsoft .NET Framework
Version 3.5 SP1

Installed Edition: Professional

Microsoft Visual Basic 2008   91605-270-6283781-60150
Microsoft Visual Basic 2008

Microsoft Visual C# 2008   91605-270-6283781-60150
Microsoft Visual C# 2008

Microsoft Visual C++ 2008   91605-270-6283781-60150
Microsoft Visual C++ 2008

Microsoft Visual Studio 2008 Tools for Office   91605-270-6283781-60150
Microsoft Visual Studio 2008 Tools for Office

Microsoft Visual Web Developer 2008   91605-270-6283781-60150
Microsoft Visual Web Developer 2008

Crystal Reports    AAJ60-G0MSA4K-68000CF
Crystal Reports Basic for Visual Studio 2008


Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB944899)   KB944899
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/944899.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB945282)   KB945282
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945282.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946040)   KB946040
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946040.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946308)   KB946308
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946308.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946344)   KB946344
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946344.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB946581)   KB946581
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/946581.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947171)   KB947171
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947171.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947173)   KB947173
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947173.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947180)   KB947180
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947180.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947540)   KB947540
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947540.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB947789)   KB947789
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947789.

Hotfix for Microsoft Visual Studio 2008 Professional Edition - ENU (KB948127)   KB948127
This hotfix is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this hotfix will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948127.

Microsoft Visual Studio 2008 Professional Edition - ENU Service Pack 1 (KB945140)   KB945140
This service pack is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/945140.

Microsoft Visual Studio 2008 Professional Edition - ENU Service Pack 1 (KB947888)   KB947888
This service pack is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/947888.

Microsoft Visual Studio 2008 Professional Edition - ENU Service Pack 1 (KB948484)   KB948484
This service pack is for Microsoft Visual Studio 2008 Professional Edition - ENU.
If you later install a more recent service pack, this service pack will be uninstalled automatically.
For more information, visit http://support.microsoft.com/kb/948484.

 

0 Kudos
Highlighted
New Contributor II
1 View

To set up 'Fortran command

To set up 'Fortran command prompt' in VS2005:

Click Tools

Click 'External Tools...'> Add

Fill the fields like this:

Title: Fortran command prompt

Command: cmd.exe

Arguments: /K ifortvars.bat ia32

Initial Directory: C:\Program Files (x86)\Intel\Compiler\11.0\075\fortran\Bin

(This is where ifortvars.bat is in my installation of IVF11.075.  Your version and installation may be different, make sure you provide the location of ifortvars.bat)

Click OK.

Then clicking Tools > Fortran command prompt will open a console.  You'll want to change to a working directory, then you can compile with:

ifort yourprogram.f90

 

 

0 Kudos
Highlighted
Black Belt
1 View

I  don’t see Intel Visual

I  don’t see Intel Visual Fortran in that list. I would suggest uninstalling and reinstalling again, and this time pay very close attention to each screen or message it displays. Given that this version is so old, there may not be much we can do to help, but it ought to work.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos
Highlighted
1 View

Gib,

Gib,

Thanks for your info. 

It was helpful.

 

Steve,

This is exactly my problem. ifort doesn't appear in VS2008.

I uninstall and re-install them several times, but nothing happened.

maybe this is because of the version or our old PC.

 

0 Kudos
Highlighted
Black Belt
1 View

If the PC version was an

If the PC version was an issue, then the install would have given you an error message. I asked you to try it again and to watch carefully the install screens and read any messages it displays. What I have often found over the years is that users just click through error and warning messages, and then later wonder why the install didn't work correctly.

What I usually suggest for hard cases is:

1) Uninstall both Intel Visual Fortran and Microsoft Visual Studio.

2) Reboot

3) Delete the Intel Visual Fortran and Microsoft Visual Studio folders under Program Files (or Program Files (x86)).

4) Reboot again

5) Reinstall Visual Studio and then Intel Visual Fortran

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos
Highlighted
1 View

Thanks Steve,

Thanks Steve,

I am gonna do that.

Is there any differences between VS-pro and VS-express.

I read somewhere that the express version is not compatible with ifort.

Actually I have both of them and just wanna make sure.

 

0 Kudos
Highlighted
Black Belt
1 View

If I recall correctly, and I

If I recall correctly, and I checked some old release notes, the Express Edition will not work. Standard Edition or higher.

Steve (aka "Doctor Fortran") - https://stevelionel.com/drfortran
0 Kudos