- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello:
I thought these problems were all fixed for quite some time, but now I'm running into it again. I have a program that IVF (11.1.038) thinks is always out of date. So whenever I try to run it, it always prompts me to first recompile.
I've narrowed it down to a reproducable test program. It looks like this is happening whenever my resource files (resource.rc, resource.h, and the generated resource.fd) are not in the same directory as my project.
The attached zip file, ResDiffDir.zip, demonstrates this problem. Note that I have also created a simple test case, attached as ResDiffDir2.zip, which has the resource files in the same directory as the project, and things work fine.
Thanks.
Michael
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for filing the report. So here's my naive question: How do I use that issue number you posted to follow the progress on this?
Thanks.
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This turns out to be a problem you introduced into the project, though I understand it is easy to overlook.
One of the needed steps when you add a resource file to a Fortran project is to add a "Custom Build Step" that invokes deftofd on the resource.h file generating resource.fd. You did this, and even added subdir\ to the command line running deftofd. But you forgot to also add subdir\ to the "Outputs" line, which is used by the build dependency analyzer.
So what happened was that the program built correctly, but Visual Studio did not find resource.fd in the project directory and it complained when you went to run the program.
The fix is to right click on resource.h, select Properties, Custom Build Step, General. Change "Outputs" to "SubDir\resource.fd" (without the quotes) and click Ok.
Let me know if this works for you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aha! I knew that the "Outputs" line needed to be filled in, but I always assumed that was just to keep Visual Studio happy, since, in the case of using the deftofd tool, the output name is specified in the "Command Line" setting. I had no idea that the "Outputs" line was actually being used for something (i.e., by the dependency analyzer).
I gave it a try and it did indeed work!
Thanks. Much appreciated.
Michael

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page