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

I cannot debug Fortran code

Chao_P_
Beginner
1,795 Views

I found several simple fortran code to test my fortran compiler. But every time I started debugging, there was a error window saying Unable to start program 'C:\users\CPU\documents\visual studio 2008\projects\console1\x64\debug\console1.exe'  The system cannot find the file specified.

I am using Intel Fortran 11.1 and visual studio 2008. I have tested Fortran with ranning a UMAT in abaqus, and it did work. But when I wanted to debug any fortran code in visual studio, it appears the above error message.

0 Kudos
12 Replies
Steven_L_Intel1
Employee
1,795 Views

This means that the executable does not exist. Did a build complete without errors? You need to build the application first. From the Visual Studio menu, select Build and then Build Solution. Then you should be able to debug. Make sure you set a breakpoint at a convenient place in the Fortran code before starting the execution.

0 Kudos
Chao_P_
Beginner
1,795 Views

Hi Steve, 

I built solution, and it appears 0 succeeded, 0 failed , 1 up-to-date, 0 skipped. And then, I started debugging, but I had the same problem. I had such problem even when I ran such a simple code.

$ vim helloworld.f

program hello
print *,"Hello World!"
end program hello

0 Kudos
Chao_P_
Beginner
1,795 Views

Hi Steve, 

I built solution, and it appears 0 succeeded, 0 failed , 1 up-to-date, 0 skipped. And then, I started debugging, but I had the same problem. I had such problem even when I ran such a simple code.

$ vim helloworld.f

program hello
print *,"Hello World!"
end program hello

0 Kudos
Chao_P_
Beginner
1,795 Views

I did as the what the link showed. But it still did not work. Why there wasn't executable file created? 

It drives me crazy.....

0 Kudos
Steven_L_Intel1
Employee
1,795 Views

Please create a ZIP of your project folder and attach it to a reply here.

0 Kudos
Chao_P_
Beginner
1,795 Views

Here is a code. Thank you so much. Steve

0 Kudos
Steven_L_Intel1
Employee
1,795 Views

You have not added the source file to the project.

0 Kudos
Chao_P_
Beginner
1,795 Views

What should I do?

0 Kudos
Chao_P_
Beginner
1,795 Views

I think I figure it out. I added the source files manually. I thought it will be created automatically. How can I make it created automatically under  the source files document?

0 Kudos
Steven_L_Intel1
Employee
1,795 Views

Select Project > Add New Item... (or Add Existing Item...). You can also right click on a project and add new/existing items that way. Another option is to drag and drop a file from a folder onto the "Source Files" pseudo-folder in your project in Visual Studio.

0 Kudos
Chao_P_
Beginner
1,795 Views

Thank you for your patience, Steve. You help me a lot.

0 Kudos
Reply