- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Within our organisation we have a problem with the Intel Visual Fortran Compiler. When a user tries to compile a program in Debug-mode (F5), the following error occurs:
Unable to start program "C:\<path to project>"
We are using Microsoft Visual Studio 2010 Professional 10.0.30319.1 and Intel(R) Visual Fortran Composer XE 2011 Update 7 Integration for Microsoft Visual Studio* 2010, 12.1.3518.2010
Does anyone know how to solve this problem?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
F5 starts the program under the debugger - it does not compile the program. You haven't built the executable yet, which is what leads to this error. Use F7 to start the build, then use F5 to start debugging. Don't forget to set a breakpoint first.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a setting in Visual Studio that controls this behavior. Tools > Options > Projects and Solutions > Build and Run. Change "On Run, when projects are out of date" to either "Always build" or "Prompt to build".
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am the IT guy that tries to solve the problem for the employee, so sorry if I say something that is not correct :).
I followed you steps, I first build the exe and then tried to use the debugger. Visual Studio immidiately shows the error message as stated in my first post. So the problem is not solved by this. Do you have some other thoughts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did the program successfully build? Does the EXE file named in the error message exist? Please attach a ZIP of the buildlog.htm file from the Debug subfolder so I can see what happened. Please also include a screenshot of the error message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hmm - that is very strange. Does the same error occur if you use CTRL-F5 to start without debugging? Can you run the program by double-clicking on it in the folder? (The console window will disappear when the program exits, but you shouldn't see an error.)
What if you create the project in a different folder, say, C:\test ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Steve,
We found the solution for this problem. The problem was a script that was executed during deployment of a PC. This script included a command that added some environmental variables (PATH), but in this command there was made a typo which caused the problem. As soon as we corrected the variable, VS debugs without any problem.
Thanks for you help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Glad to hear it!

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page