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

Question about deftofd

nvaneck
New Contributor I
359 Views
I have dialogs that go into resource.h. I've added resource.h to the project. I've added the deftofd step as a cuistom build step. However, resource.fd doesn't get updated, except perhaps at the end of the compilations. Consequently, the project is always using an old version of resource.fd, even if it is generated in the custom build step. If I rebuild the project, resource.fd is deleted from the include directory, and compilations fail because it is no longer there.

I work aroiund this by placing the deftofd run in a batch fle which I run as needed, but if I rebuild the project, I have to let it get deleted, fail to be found in a subsequent compile, and then run the bat file again.

This works, but is awkward.

Also, the deftofd command description indicates file1 and file2 on the command line, but the custom build step wants file2 in the outputs box. Is it need both places? I also must indicate the fill path on the deftofd command in the custom build step or it doen't seem to go anywhere the compiler can find it.

What's the proper way to do this? There must be something I'm missing.

NVE



0 Kudos
1 Reply
nvaneck
New Contributor I
359 Views
Never mind; I discovered pre-build step...

NVE
0 Kudos
Reply