<?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 Specifying the path to a dll in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-path-to-a-dll/m-p/785408#M29809</link>
    <description>I'm new to CVF and am having trouble understanding how to build and use a dll.&lt;BR /&gt;&lt;BR /&gt;  I built a dll in one project, and a main program in another.  By changing the Windows 2000 Path environmental variable (to the dll debug directory), I got the main program to run, but that is an ugly solution.&lt;BR /&gt;&lt;BR /&gt;  Is there a simple way to set the path to the dll in the workspace of the main program project?  (I tried, for example adding the path to Tools MenuOptions... Directories tabShow directories for Executables, but that didn't seem to do anything.  What DOES it do, anyway?!)  The Programmers Manual suggests a whole raft of things in the chapter entitled "Building Executables that Use DLLs", most of which I don't understand, and don't work anyway.&lt;BR /&gt;&lt;BR /&gt;  What actually happens when I import the .lib file into my main program project (via Project menuAddFiles)?  It doesn't appear that I need to do this to get the main program to work properly.&lt;BR /&gt;&lt;BR /&gt;  My apologies for such silly questions; I find the documentation for CVF fairly impenetrable.  (Are there any good books or reference materials that I should read?)&lt;BR /&gt;&lt;BR /&gt;  Many thanks,&lt;BR /&gt;&lt;BR /&gt;Tom</description>
    <pubDate>Wed, 01 Oct 2003 01:35:43 GMT</pubDate>
    <dc:creator>tom_kreutz</dc:creator>
    <dc:date>2003-10-01T01:35:43Z</dc:date>
    <item>
      <title>Specifying the path to a dll</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-path-to-a-dll/m-p/785408#M29809</link>
      <description>I'm new to CVF and am having trouble understanding how to build and use a dll.&lt;BR /&gt;&lt;BR /&gt;  I built a dll in one project, and a main program in another.  By changing the Windows 2000 Path environmental variable (to the dll debug directory), I got the main program to run, but that is an ugly solution.&lt;BR /&gt;&lt;BR /&gt;  Is there a simple way to set the path to the dll in the workspace of the main program project?  (I tried, for example adding the path to Tools MenuOptions... Directories tabShow directories for Executables, but that didn't seem to do anything.  What DOES it do, anyway?!)  The Programmers Manual suggests a whole raft of things in the chapter entitled "Building Executables that Use DLLs", most of which I don't understand, and don't work anyway.&lt;BR /&gt;&lt;BR /&gt;  What actually happens when I import the .lib file into my main program project (via Project menuAddFiles)?  It doesn't appear that I need to do this to get the main program to work properly.&lt;BR /&gt;&lt;BR /&gt;  My apologies for such silly questions; I find the documentation for CVF fairly impenetrable.  (Are there any good books or reference materials that I should read?)&lt;BR /&gt;&lt;BR /&gt;  Many thanks,&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Wed, 01 Oct 2003 01:35:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-path-to-a-dll/m-p/785408#M29809</guid>
      <dc:creator>tom_kreutz</dc:creator>
      <dc:date>2003-10-01T01:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying the path to a dll</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-path-to-a-dll/m-p/785409#M29810</link>
      <description>The easiest way is to copy the DLL to the caller's folder.&lt;BR /&gt;&lt;BR /&gt;If that is too much work, you can set the location of the output of the DLL project under &lt;BR /&gt;Projects--Seting--Link--Output file name&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Wed, 01 Oct 2003 04:05:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-path-to-a-dll/m-p/785409#M29810</guid>
      <dc:creator>rahzan</dc:creator>
      <dc:date>2003-10-01T04:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying the path to a dll</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-path-to-a-dll/m-p/785410#M29811</link>
      <description>&amp;gt; What actually happens when I import the .lib file into&lt;BR /&gt;&amp;gt; my main program project (via Project menuAddFiles)? &lt;BR /&gt;&amp;gt; It doesn't appear that I need to do this to get the&lt;BR /&gt;&amp;gt; main program to work properly.&lt;BR /&gt;&lt;BR /&gt;Whoops!  I'm wrong.  It DOES matter!  What does this step do?</description>
      <pubDate>Wed, 01 Oct 2003 04:39:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-path-to-a-dll/m-p/785410#M29811</guid>
      <dc:creator>tom_kreutz</dc:creator>
      <dc:date>2003-10-01T04:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying the path to a dll</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-path-to-a-dll/m-p/785411#M29812</link>
      <description>You can think of the LIB as the _Interface_ to the functions of the library While the DLL holds the actual contents of the routines in the library.&lt;BR /&gt;&lt;BR /&gt;An interface is basically, the names of the routines, the type of procedure (subrputine, function) and the name, sequence and the types of the arguments.&lt;BR /&gt;&lt;BR /&gt;Having these but not the underlying code satisfies the need from the caller app to fiish the build process and acts as a kind of placeholder until the actual code is supplied in the DLL at runtime.&lt;BR /&gt;&lt;BR /&gt;For a STATIC library the LIB file contains BOTH the interface and the implementation, therefore it is NOT possible to effect the code changes in the library without recompiling the whole app.&lt;BR /&gt;&lt;BR /&gt;With a DLL you can change the code as long as you do not change the interface. Then you can simply replace the old DLL with a new one and leave the caller app alone.&lt;BR /&gt;&lt;BR /&gt;STATIC libs are more cumbersome but typically result in faster execution, because the whole project is likely to be better optimized when all code is available.&lt;BR /&gt;&lt;BR /&gt;Tim</description>
      <pubDate>Wed, 01 Oct 2003 05:22:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-path-to-a-dll/m-p/785411#M29812</guid>
      <dc:creator>rahzan</dc:creator>
      <dc:date>2003-10-01T05:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying the path to a dll</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-path-to-a-dll/m-p/785412#M29813</link>
      <description>I'd just second Tim's suggestion to change the path to .dll on dll's ProjectSettingsLinkOutput file name. If you copy the dll instead, you're likely to be surprised once when you forget to do it. For example, it's really &lt;I&gt;funny&lt;/I&gt; to debug old copy of the .dll while looking at source of the new copy.&lt;BR /&gt;&lt;BR /&gt;I doubt you'd get any better optimization with the static library, as the compiler (not the linker) doesn't know about its existence to be able to do anything smart, and the linker is dumb anyway. The only performance cost for using dll's is one-time dll loading.&lt;BR /&gt;&lt;BR /&gt;Jugoslav</description>
      <pubDate>Wed, 01 Oct 2003 16:51:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-path-to-a-dll/m-p/785412#M29813</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2003-10-01T16:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: Specifying the path to a dll</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-path-to-a-dll/m-p/785413#M29814</link>
      <description>Dear Tim and Jugoslav,&lt;BR /&gt;&lt;BR /&gt;  Thanks very much for your very helpful replies!&lt;BR /&gt;&lt;BR /&gt;Tom</description>
      <pubDate>Thu, 02 Oct 2003 19:46:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Specifying-the-path-to-a-dll/m-p/785413#M29814</guid>
      <dc:creator>tom_kreutz</dc:creator>
      <dc:date>2003-10-02T19:46:27Z</dc:date>
    </item>
  </channel>
</rss>

