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

CreateVFProject

rftap
Beginner
663 Views

I try toadapt default.js to set up my own type of IVF project. Can anybody please tell me how to retrieve the properties and methods of the object generated by CreateVFProject.

I would like to automatically set the FPP switch, but I can not find how to do that.

Frank

0 Kudos
3 Replies
rftap
Beginner
663 Views

I tried to add:

tool.GeneratePreprocessedFile = preprocessOption.preprocessYes

but I get the following error message:

Error in AddConfigsDLL: Object doesn't support this property or method

Frank

0 Kudos
Jugoslav_Dujic
Valued Contributor II
663 Views
I don't see if the documentation of VF compiler and other tools' VS Object model is available, but you should be able to solve the problem by a bit of reverse engineering. The VFtool object properties names and values are visible in the .vfproj source file, so you can deduce it for yourself:
  • save a copy of an original .vfproj file
  • change the appropriate compiler switches in IDE and save the project
  • compare the two .vfproj using a diff tool (e.g. http://winmerge.org/)
Using that method for /fpp switch, I found out that the difference is
 Preprocess="preprocessYes"
thus, the appropriate syntax is probably
 tool.Preprocess = preprocessOption.preprocessYes, or just
 tool.Preprocess = preprocessYes

HTH
Jugoslav

0 Kudos
rftap
Beginner
663 Views
JugoslavDujic:
thus, the appropriate syntax is probably
 tool.Preprocess = preprocessOption.preprocessYes, or just
 tool.Preprocess = preprocessYes


HTH
Jugoslav

I tried both

tool.Preprocess = preprocessOption.preprocessYes

works fine.

Thank you very much.

Frank

0 Kudos
Reply