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

Getting started - Simple IVF Application

amcspadd
Beginner
1,487 Views

I have been trying to find a basic intro/tutorial to using IVF + Visual Studio IDE. It seems the online documentation covers each of the Fortran languageand Visual Studio all well and good. But there is not a simple example walking you through a simple application from the ground up.

I was a moderate developer in Compaq VF about 10 years ago. I recently needed to go back and get some old code running again and it seemed about the only commercial compiler available was IVF. So I installed IVF Version 10.0.3 running in the MS Visual Studio 2005 IDE which came with it. My laptop is running Vista.

I have built a new Console project, added my 'HelloWorld.f90' file and would like to compile an EXE and/or run it from within the IDE. When I select Build/Rebuild etc., it says that it has 1 success, 0 failures, 0 skipped. But I don't find an .exe in my directory. If I try to set a breakpoint and step into it, it says the .exe cannot be found.

Is there a tutorial available geared that steps through this? I think I just need to get through the basics phase of understanding how the IVF+Visual Studio IDE work.....

0 Kudos
11 Replies
DavidWhite
Valued Contributor II
1,487 Views
From your explanation, it appears you are doing what is required.

There have been recent reports of virus scanners immediately deleting any new .exe files as they are created. Is this possible on your machine?

David
0 Kudos
anthonyrichards
New Contributor III
1,487 Views
..in which case, edit your project properties to change your executable output file name to WHATEVER.EXP and see if it turns up ok.
0 Kudos
amcspadd
Beginner
1,487 Views

Thanks very much for your replies. My suspicion is that is that this must be something very simple and/or perhaps my ignorance is even greater than I realized.

I attempted to go down the path suggested. Under Project Properties, I select Linker - General - Output and hard enter both the path and file name: 'C:\Work\Whatever.Exp'. Rebuilding the project or solution (not quite sure of the difference) seems to again report '1 succeeded, 0 failures, etc.' in theOutputwindowand log file. But no *.exp file is to be found in my directory. If I now try to step into the code to my breakpoint, the IDE says "Visual Studio cannot debug because the debug target 'C:\Work\helloworld.exp' is not an EXE file."

Is the right place to attempt the work around?

I am running Kaspersky antivirus but it does not show any events other than todays automatic updates. No files quarantined or other indication that it exterminated my output files. It is setup to question me for any new program seeking to take control and execute.

Finally, I am running Vista as the Administrator and I am right-clicking to run Visual Studio as Administrator.

0 Kudos
mecej4
Honored Contributor III
1,487 Views
Open the C:\work directory.

See if there is a "Whatever.exp" file there. If so, rename it to "Helloworld.exe". Otherwise, if you find a file "Helloworld.exp", rename it to "Helloworld.exe".

Observe whether your antivirus program does anything with it.

If not, go back and try to debug in VisualStudio.
0 Kudos
Steven_L_Intel1
Employee
1,487 Views
Put the filename back to a .exe. Do a "rebuild". In the Debug (or Release) folder is a buildlog.htm file. Attach it to a reply here.
0 Kudos
amcspadd
Beginner
1,487 Views
Here are the contents of the log file (also attached):

------ Build started: Project: HellowWorld3, Configuration: Release|Win32 ------

Deleting intermediate files and output files for project 'HellowWorld3', configuration 'Release|Win32'.

HellowWorld3 - 0 error(s), 0 warning(s)

0 Kudos
DavidWhite
Valued Contributor II
1,487 Views
I think you need to do a rebuild to get the full log. This isn't showing that anything was compiled.
0 Kudos
Steven_L_Intel1
Employee
1,487 Views
Curiously, it does look like a rebuild was done, hence the "Deleting" line. But there is nothing in the project to build. Please attach the .vfproj file.
0 Kudos
amcspadd
Beginner
1,487 Views
Thanks for your persistence, gents! I was going to reply in more detail about how I created the project...

But in the process I realize now what has happened. I was pulling in my.f90 file and/or creating one in the IDE and so I could view my code and even put in a breakpoint. BUT .... I did not go over to the 'Solution Explorer' window and right click on 'Source Files' and 'Add Item' to officially include the source file in my project. This was a bit non-obvious for a rusty programmer like me!

As I said, it might have helped to have a tutorial on building a simple from scratch. The documentation focuses on pulling in a pre-existing project.

I've attached two files v.3 and v.4 just for grins ....since you went the extra mile to ask, Steve. Thanks again!
0 Kudos
Steven_L_Intel1
Employee
1,487 Views
In the Documentation: Building Applications > Building Applications from Microsoft Visual Studio > Creating a New Project. It discusses both adding new and adding existing files to a project.

However, you are one of many who have asked for more tutorial information, and we are working on that.
0 Kudos
amcspadd
Beginner
1,487 Views
YEs, thanks again. On second reading the section seems clear enough. Maybe it would have helped if it had said "Now, stupid, to have code - addfilesto your project!" Sorry for the trouble.
0 Kudos
Reply