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

External dependencies

tie_fang
Beginner
833 Views

I just upgraded from CVF to intel visual fortran. The project compiles and runs after some minor changes.

One problem I noticed is that there is no "external dependencies" folder for each project in solution explorer. In visual studio 6, I can quickly find a include files like *.i and *.fi files in "external dependencies" folder. I added *.i to Fotran File Extensions, but it makes no difference. The head files folder is also empty. Did i do something wrong?

0 Kudos
3 Replies
Steven_L_Intel1
Employee
833 Views

No, you didn't do anything wrong. Intel Fortran does not create such a folder in the project. You can create your own and add files to it.

0 Kudos
rwg
Novice
833 Views

Isn't there a way (or macro) to do this automatically? I've lots of ressource files which are included in one main ressource file (which is generated by a program) because only one ressource file can be added to the project. Now I'm looking for a quick way to edit these files in VS (like in CVF where the files resides in "external dependencies").

The next problem is that no fd file is created after changing such an included ressource file. Does someone know an easy way to call the needed deftofd automatically for such an includes resource file?

0 Kudos
Steven_L_Intel1
Employee
833 Views

Depending on how you created your project, deftofd should be called automatically. If not, you need to add a build action as described in the documentation.

  1. When you save your resource file for the first time, the resource editor also creates a Resource.h file. This file is included by the .RC file. To create the Fortran equivalent of this file (resource.fd), do the following:
    1. Add Resource.h to your project using File>Add Existing Item....
    2. Select the Resource.h file in the Solution View and the select View>Property Pages from the main menu bar.
    3. Set the Command Line option to use the deftofd tool by entering:
      deftofd resource.h resource.fd

      (For more information on the deftofd tool, see
      The Include (.FD and .H) Files.)
    4. Set the Description option to Generating Fortran include file...
    5. Set the Outputs option to resource.fd.
    6. Click OK.
0 Kudos
Reply