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

Help - "Unable to start program"

buha
Beginner
2,262 Views
Hello!
First of allMyEnglishisbad!
I use:Microsoft VisualStudio 2010 Ultimate +Intel Visual Fortran Composer XE 2011 on Widonws 7 x64.
Today I installed Array Visualizer 3.3 and I was modifying the path of "Executables", "Library" and "Includes" from Tools - Options - Intel Visual Fortran - Compilers.Iprobablyaccidentallypresseda buttonbecause my window look like this. If I want to start a new project and I F5, I get thefollowingmessage:
Unable to start program ....... The system cannot find the file specified. See this image.
Iuninstalled Array Visualizer, Intel Fortran, MS Visual Studio andclean the registry. I have reinstalled MS Visual Studio andIntel Fortran and I have the same problem.
How can Iresetthe soft to use the default settings? Now I only want to use Fortran withoutArray Visualizer.
I'm new toFortranand to this forum. I try tofinish my workhome...
Thank you!
0 Kudos
11 Replies
Steven_L_Intel1
Employee
2,262 Views
I think I know what the problem is, and how to fix it, but before I tell you, I would ask that you do something that will help us understand what causes this problem.

Click the Windows Start icon (lower left) and search for regedit.exe. Open that (it will prompt you for administrator privilege).

Click on the triangles next to the following key names, in order:
  • HKEY_CURRENT_USER
  • Software
  • Microsoft
  • Visual Studio
  • 10.0
  • Intel Fortran
  • VFToolOpt

Right click on "121" and select Export. Choose a convenient folder, rename the file to be ifort.txt and click Save. Email the ifort.txt file to me at steve.lionel at intel dot com with a subject line of "Unable to start program".

Close regedit. Open Visual Studio. Select Tools > Options > Intel Visual Fortran > General. You will probably find that the fields for Sources (one for fixed form and one for free form) are empty. In the Fixed Form > Sources field, type:

.f;.for;.fpp

In the Free Form > Sources field, type:

.f90

Click OK. Now open your project, and press F7 to do a build. This should build your project. If it is successful, you will be able to run it. (Remember thasn F5 starts the program in the debugger, and if you have not set breakpoints, the program will finish and remove the console window. I suggest CTRL-F5 to run without debugging as a test.)

Let me know how this works for you.

0 Kudos
buha
Beginner
2,262 Views
Thankyouverymuch!!!
Now the softwareworks fine!

I haven't the 121 folder, see this image.
0 Kudos
Steven_L_Intel1
Employee
2,262 Views
Ok, you're running an older compiler. Thanks for the screenshot, though, it is helpful.
0 Kudos
enni707
Beginner
2,262 Views
Hey Steve, it turns out I have the same problem. My file format in the 'options' is like what you said. Could I send you 'ifort.txt' to you? Or could you tell me how to change it? Thanks a lot.
0 Kudos
Steven_L_Intel1
Employee
2,262 Views
enni707, I am not sure what you mean by "like what you said". Do you mean the fields are blank, or that they are filled in? If they are blank, just fill them in as I described - no need for you to send me the registry tree. If they are already filled in, then you have a different problem and I'd ask that you attach the buildlog.htm from the Debug or Release folder.
0 Kudos
enni707
Beginner
2,262 Views
Hi Steve, thank you for your help. These fields are filled in with what you said. I attached the BuildLog.htm file. It lookes fine to me so I attached the ifort.txt as well. Thank you so much.
0 Kudos
Steven_L_Intel1
Employee
2,262 Views
It is interesting that the registry has none of the values directly under "120" filled in. There should be values there. Do you see .f90 in Tools > Options > Intel Visual Fortran > General > Free form?

I see you are running an older version, though this should work. Perhaps you can uninstall Fortran and reinstall - a current version if you can.

The build log strongly suggests that you have the problem I described, but I think this was after a Build and not a Rebuild. If you do a Build > Rebuild Solution, do you see any Fortran source files being compiled?
0 Kudos
enni707
Beginner
2,262 Views
Hi Steve. I just updated to a new version, and I did see .f90 in the Free Format field. But I still have the problem. I tried to rebuild and I did not see .exe file. I attached the new ifort.txt file.
Thanks
0 Kudos
Steven_L_Intel1
Employee
2,262 Views
The registry tree you showed most recently was one level too deep.

Please do a Build > Rebuild and attach the buildlog.htm.
0 Kudos
enni707
Beginner
2,262 Views
I found my problem. I have to right click the project and create a new file there. Also I have to press ctrl+F5 to execute my program. Don't know why.
Thank you.
0 Kudos
Steven_L_Intel1
Employee
2,262 Views
You do need to add files to a project in order to build in a project. CTRL-F5 runs the program without debugging - this gives you a console window that stays around. F5 starts the program under the debugger, but if you have not set a breakpoint, the program runs to completion and the console window is removed.

Let us know if you need help in the future.
0 Kudos
Reply