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

Directory confusion

groupw_bench
Beginner
336 Views

I'm running IVF 9.1 within Visual Studio 2005 under XP. I build a debug version of my program and try to debug it by running it in the environment, and get the message that the debug target (the .exe) file can't be found.

I have two projects in my "solution". The "solution" name is, say, P1, and one of the projects is also named P1. The second project is named P2. The problem is occurring when I build then try to debug P2.

When I build P2, the compiler puts the exe file into My DocumentsVisual StudioProjectsP2P2 Debug. The debugger expects to find it in . . .ProjectsP1P2 Debug. I haven't changed any locations from the defaults.

I'd think that the program would know enough to look for the .exe file in the directory where it had just written it, but it doesn't. So howcan I tell it to look forthe file in the directory it wrote it to?

0 Kudos
1 Reply
Steven_L_Intel1
Employee
336 Views
VS has the notion of "startup project" - this is what gets run when you start the debugger, and the startup project is displayed in bold. If you want to debug an executable project that is not the startup project, either make it the startup project (right click on the project and select "Set as startup project" or you can debug that project by right clicking, then selecting Debug..Start new instance.
0 Kudos
Reply