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

Can I put a version number into the EXE?

riceman0
Beginner
1,419 Views
Using Intel FORTRAN Compiler 7.1 with the Visual Studio 2003 extensions, it's working great for us. We have recompiled some old FORTRAN to some new EXEs w/o much effort. One question: is there a setting to create EXEs with built-in version numbers? I mean like in Windows, when you right-click on a file and you see a Version tab and can get the version number. This would greatly simplify our configuration control.

Several of the newer development systems I've worked with allow you to do this, just wondering if this is possible with this compiler.

Thanks in advance!
0 Kudos
7 Replies
Steven_L_Intel1
Employee
1,419 Views
You want a version resource. Read in the VS.NET documentation about the resource editor. The compiler has nothing to do with it.
0 Kudos
riceman0
Beginner
1,419 Views
Looking into it. But it seems like it might have something to do with the Intel Visual 2003 FORTRAN extensions. I know how to add a resource in a normal .NET project, but when I try to similarly "add an item" to my FORTRAN project, it brings up a special dialog with choices for "Intel Fortran Project Items" and the only two options are an Include file and a Source file.....
0 Kudos
riceman0
Beginner
1,418 Views
Would the .NET 2003 extension be a different forum?
0 Kudos
riceman0
Beginner
1,419 Views
I now know how to create version resources in all the usual .NET languages, but the Intel FORTRAN .NET project doesn;t seem to let me do it. In fact when I create version resource files in any other language and try to include it into the FORTRAN project, it seems to ignore it.

This is true even if I go to project properties -> Linker ->Input, there is an entry for "Embed Managed Resource File", and put the name of my file in there, but I can't get it to incorporate the file.

I'm also asking questions on a .NET forum, but they are blaming the extensions. Is there anyplace I can get help with the Intel extensions?
0 Kudos
Steven_L_Intel1
Employee
1,419 Views

There is not a different forum, but you are using an unsupported version of the compiler that was replaced more than three years ago. I have not used 7.1 in a long time, but I don't recall a problem adding a version resource. I'd expect that what you would do is Project..Add to Project..Resource File. Then double-click on the resource.rc file to open the resource editor.

If that doesn't work, then I would suggest updating to Intel Visual Fortran 9.1, where I know this works.

0 Kudos
anthonyrichards
New Contributor III
1,419 Views

Well, I have CVF 6.6C that uses DevStudio and I tried this on a simple console .EXE that initially had no resources.

I went to Insert..resource, selected 'Version' from the list of resources, saved the resource in 'script1.rc' and added it to my project. I then compiled the resource file 'script1.rc' and then built the .EXE.

When I left mouse click on the .EXE file, and select 'Properties' a Properties window opens and the version tab is there. Where's the problem?

0 Kudos
Steven_L_Intel1
Employee
1,419 Views
Yes, it works fine in CVF and in Intel Visual Fortran. My guess is that riceman is selecting the wrong menu item - nothing related to "managed" code should be used here.
0 Kudos
Reply