Forum Jump

Select Group :
Select Forum :
Sorted By :
Sort Order :
From The :
 
Thread Tools  Search this thread 
tie.fang@makai.com
Total Points:
10
Registered User
October 10, 2008 4:24 PM PDT
External dependencies

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?

Steve Lionel (Intel)
Total Points:
84,536
Status Points:
84,536
Black Belt
October 11, 2008 4:16 PM PDT
Rate
 
#1

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.




rwg
October 14, 2008 12:18 AM PDT
Rate
 
#2 Reply to #1

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?



Steve Lionel (Intel)
Total Points:
84,536
Status Points:
84,536
Black Belt
October 14, 2008 6:41 AM PDT
Rate
 
#3

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.





Intel Software Network Forums Statistics

6668 users have contributed to 28284 threads and 87461 posts to date.
In the past 24 hours, we have 6 new thread(s) 35 new posts(s), and 50 new user(s).

In the past 3 days, the most popular thread for everyone has been Fortran and Matlab The most posts were made to Larger Test Data The post with the most views is Quoting - nabeels Hello e

Please welcome our newest member karolbe