<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using an environment variable in &amp;quot;Additional Include Directorie in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810860#M42573</link>
    <description>The syntax to use here is:&lt;BR /&gt;&lt;BR /&gt;$(inst_drive)&lt;BR /&gt;&lt;BR /&gt;The % syntax is primarily used by the command parser, though why Microsoft didn't also use it here I don't know.</description>
    <pubDate>Wed, 06 Oct 2010 18:10:45 GMT</pubDate>
    <dc:creator>Steven_L_Intel1</dc:creator>
    <dc:date>2010-10-06T18:10:45Z</dc:date>
    <item>
      <title>Using an environment variable in "Additional Include Directories"</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810859#M42572</link>
      <description>In my Project, I refer to an environment variable in the "Additional Include Directories" which needs to be set before the build can proceed:&lt;BR /&gt;&lt;BR /&gt;..\\..\\include&lt;BR /&gt;%inst_drive%:\\Program Files\\Prog\\commons&lt;BR /&gt;&lt;BR /&gt;"inst_drive" may be different on different machines&lt;BR /&gt;&lt;BR /&gt;I tried setting the environment variable as a pre-build instruction, but it still can't find the includes it needs.&lt;BR /&gt;&lt;BR /&gt;I suspect the include directories are searched and set up befoe the pre-build instruction is executed.&lt;BR /&gt;&lt;BR /&gt;Any idea how to do this?&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Oct 2010 16:20:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810859#M42572</guid>
      <dc:creator>ferrad01</dc:creator>
      <dc:date>2010-10-06T16:20:24Z</dc:date>
    </item>
    <item>
      <title>Using an environment variable in "Additional Include Directorie</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810860#M42573</link>
      <description>The syntax to use here is:&lt;BR /&gt;&lt;BR /&gt;$(inst_drive)&lt;BR /&gt;&lt;BR /&gt;The % syntax is primarily used by the command parser, though why Microsoft didn't also use it here I don't know.</description>
      <pubDate>Wed, 06 Oct 2010 18:10:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810860#M42573</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-10-06T18:10:45Z</dc:date>
    </item>
    <item>
      <title>Using an environment variable in "Additional Include Directorie</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810861#M42574</link>
      <description>Tried that, still same problem:&lt;BR /&gt;&lt;BR /&gt;Compiling with Intel Visual Fortran 11.1.060 [IA-32]...&lt;BR /&gt;efracr.for&lt;BR /&gt;Project : warning PRJ0018 : The following environment variables were not found:&lt;BR /&gt;$(inst_drive)&lt;BR /&gt;&lt;BR /&gt;However, it is interesting in that it still compiled even though it couldn't work out what the installation drive $(inst_drive) is. Expanding the command line gives:&lt;BR /&gt;&lt;BR /&gt;Compiling with Intel Visual Fortran 11.1.060 [IA-32]...&lt;BR /&gt;&lt;BR /&gt;ifort /nologo /debug:full /Od /fpp /I"..\..\include" &lt;B&gt;/I":\Program Files\Prog\commons" &lt;/B&gt;/DWIN32 /DAWINNTN /gen-interfaces /warn:interfaces /assume:dummy_aliases /names:uppercase /iface:cvf /traceback /libs:dll /threads /dbglibs /c /Qvc9 /Qlocation,link,"C:\Program Files\Microsoft Visual Studio 9.0\VC\bin" "efracr.for"&lt;BR /&gt;&lt;BR /&gt;Note that it is able to find the include by properly interpreting the bold bit above even though the drive is not specified! (ie. $(inst_drive) not found)</description>
      <pubDate>Wed, 06 Oct 2010 18:25:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810861#M42574</guid>
      <dc:creator>ferrad01</dc:creator>
      <dc:date>2010-10-06T18:25:21Z</dc:date>
    </item>
    <item>
      <title>Using an environment variable in "Additional Include Directorie</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810862#M42575</link>
      <description>I use that syntax frequently and it works for me. In what context is INST_DRIVE defined? What I do to diagnose such things is add a post-build step with the command "SET" to show me all the environment variables.</description>
      <pubDate>Wed, 06 Oct 2010 19:46:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810862#M42575</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-10-06T19:46:47Z</dc:date>
    </item>
    <item>
      <title>Using an environment variable in "Additional Include Directorie</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810863#M42576</link>
      <description>That's the problem- inst_drive is not set when the project is loaded. I need the VFPROJ to run a batch file to set it, so I added the batch file file as a Pre-build process, which did not work.</description>
      <pubDate>Wed, 06 Oct 2010 20:53:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810863#M42576</guid>
      <dc:creator>ferrad01</dc:creator>
      <dc:date>2010-10-06T20:53:51Z</dc:date>
    </item>
    <item>
      <title>Using an environment variable in "Additional Include Directorie</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810864#M42577</link>
      <description>Try this. Create a batch file that sets the environment variable and then invokes devenv.exe&lt;BR /&gt;&lt;BR /&gt;You can also play with the project property Debugging &amp;gt; Environment. You can use this to set environment variables (I believe the syntax is VARNAME=value)</description>
      <pubDate>Wed, 06 Oct 2010 21:12:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810864#M42577</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-10-06T21:12:12Z</dc:date>
    </item>
    <item>
      <title>Using an environment variable in "Additional Include Directorie</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810865#M42578</link>
      <description>I have the former above already implemented for my batch build process, that is not a problem. What I want is for a new developer to just fire up VS2008, load the project and go, ie. get the project to set up the environment variable and then build.&lt;BR /&gt;&lt;BR /&gt;I looked at Debugging environment, but it looks like that is only for debugging, ie. the project must already have been built. My problem is at build time.</description>
      <pubDate>Thu, 07 Oct 2010 12:31:18 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810865#M42578</guid>
      <dc:creator>ferrad01</dc:creator>
      <dc:date>2010-10-07T12:31:18Z</dc:date>
    </item>
    <item>
      <title>Using an environment variable in "Additional Include Directorie</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810866#M42579</link>
      <description>Since it seems that you do not wish to set a system INST_DRIVE environment variable, is it safe to assume that you want multiple projects to have different INST_DRIVE variables?&lt;BR /&gt;&lt;BR /&gt;One of the common techniques to do this is to&lt;BR /&gt;1) create the batch file as suggested by Steve (sets environment variable and calls devenv.exe)&lt;BR /&gt;2) create a shortcut to this batch file&lt;BR /&gt;3) optionally assign the Visual Studion Icon to this shortcut&lt;BR /&gt;4) name the text on the shortcut to something related to your project&lt;BR /&gt;5) place this shortcut into project launch folder (or on desktop)&lt;BR /&gt;&lt;BR /&gt;Now user does not launch VS then pick project&lt;BR /&gt;Rather user picks project and launches VS&lt;BR /&gt;&lt;BR /&gt;An alternate means is to define as system envrionment variables&lt;BR /&gt;&lt;BR /&gt;INST_A=...&lt;BR /&gt;INST_B=...&lt;BR /&gt;...&lt;BR /&gt;(or INST_Project_foo=...)&lt;BR /&gt;&lt;BR /&gt;Then have in your project the choice of which INST_x variable to use.&lt;BR /&gt;&lt;BR /&gt;This provides you a means external to VS to rearrange your placements by editing the system environment variables.&lt;BR /&gt;&lt;BR /&gt;Jim Dempsey&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 07 Oct 2010 12:53:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810866#M42579</guid>
      <dc:creator>jimdempseyatthecove</dc:creator>
      <dc:date>2010-10-07T12:53:52Z</dc:date>
    </item>
    <item>
      <title>Using an environment variable in "Additional Include Directorie</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810867#M42580</link>
      <description>Thanks Jim. I will probably choose the latter method. (Although I was hoping that VS could run a batch file for me before it referenced the environment variable, but I guess this isn't possible- at least not in the Additional Libraries).</description>
      <pubDate>Thu, 07 Oct 2010 13:01:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810867#M42580</guid>
      <dc:creator>ferrad01</dc:creator>
      <dc:date>2010-10-07T13:01:46Z</dc:date>
    </item>
    <item>
      <title>Using an environment variable in "Additional Include Directorie</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810868#M42581</link>
      <description>Is there a reason why you cannot set the environment variable on each machine using Control Panel ?&lt;BR /&gt;Even if it is different for each machine, once it has been set for a machineit can be left until it changes. That way you don't need to bother about batch files etc just click on theVS icon, or the project's solution icon, the environment variable will be there waiting.&lt;BR /&gt;&lt;BR /&gt;Les</description>
      <pubDate>Thu, 07 Oct 2010 13:15:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810868#M42581</guid>
      <dc:creator>Les_Neilson</dc:creator>
      <dc:date>2010-10-07T13:15:25Z</dc:date>
    </item>
    <item>
      <title>Using an environment variable in "Additional Include Directorie</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810869#M42582</link>
      <description>Yes I can, just that I don't want to become the "install geek". Where I can get something done automatically by software, I always follow that route.</description>
      <pubDate>Thu, 07 Oct 2010 13:27:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810869#M42582</guid>
      <dc:creator>ferrad01</dc:creator>
      <dc:date>2010-10-07T13:27:54Z</dc:date>
    </item>
    <item>
      <title>I think Steve's correct that</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810870#M42583</link>
      <description>&lt;P&gt;I think Steve's correct that "the syntax to use here is&amp;nbsp;$(inst_drive)" but I'm less sure that "the % syntax is primarily used by the command parser". The &lt;A href="http://msdn.microsoft.com/en-us/library/vstudio/669zx6zc.aspx"&gt;documentation on working with project properties&lt;/A&gt;&amp;nbsp;suggests that the syntax&amp;nbsp;%(name) is used for&amp;nbsp;item macros.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2013 08:24:40 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Using-an-environment-variable-in-quot-Additional-Include/m-p/810870#M42583</guid>
      <dc:creator>dumbledad</dc:creator>
      <dc:date>2013-10-24T08:24:40Z</dc:date>
    </item>
  </channel>
</rss>

