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

default IDE settings

martymike
Novice
845 Views

is there a way to change the default Fortran and Linker settings in Visual Studio? I'm using IFV 9.1 and VS 2005.net

0 Kudos
5 Replies
Steven_L_Intel1
Employee
845 Views
Sort of, though not actually in Visual Studio. You do it by editing the ifort.cfg file as described in the on-disk documentation ("Configuration File"). I'm not sure if this will change linker settings in VS, though. What did you want to change?
0 Kudos
martymike
Novice
845 Views

I'm not sure that that is going to do what I want. If I understand correctely that actually changes what the compiler itself thinks are the defaults (there are about a dozen that we are changing, e.g. assume:buffered_io, iface:cvf, threads - and for the linker just a few, like map).

I'm creating Visual Studio projects for everyone else on the team to use. I could create a cfg file and distribute it, but I'd rather not. I was hoping for something that would set different defaults on the command line that Studio creates.

Maybe I'm not giving your idea enough thought. I'm going to resist making a quick decision here and see if I can make it work.

0 Kudos
jimdempseyatthecove
Honored Contributor III
845 Views

How about using an environment variable such as

MartyMikeIVFOPT=/a /b /c

Then in the additional command line section include $(MartyMikeIVFOPT)

Jim Dempsey

0 Kudos
Steven_L_Intel1
Employee
845 Views
CVF had exactly the feature you're looking for, but it didn't translate into the new VS environment so we had to drop it. MSVC has something called project templates that we recently enabled for Intel C++. This could be done because it works off of the MSVC project system. With Fortran, we have our own project system (that's the way it works in VS as of 2002.) I'll put in a feature request to add this or something like it.

Yes, you're correct that changes to ifort.cfg change compiler defaults, and Jim's suggestion, if it worked (I'm not sure), would amount to the same thing (but would also require users to modify each project.)
0 Kudos
Jugoslav_Dujic
Valued Contributor II
845 Views
Well, you can modify or fork the Project Wizard files (C:Program FilesMicrosoft Visual Studio 8Intel FortranVFProjects). If you fork them, as result you will get a modified copy of default project in "New/Project/Intel Fortran project" under a different name and with altered settings. Of course, that will affect only new projects (started from scratch). In any case, though, you will have to redistribute those files to the end users. I can provide you some guidelines, but I'm not sure if you want to investigate that path.
0 Kudos
Reply