<?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 Re: How to link a dll file in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870441#M71942</link>
    <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
I tried all the possible combiantions with .dll or/and .def in the compiling command but it does not work. &lt;BR /&gt;What about the visual tools? If I make a project, can I specifiy there to link to my library?&lt;BR /&gt;&lt;BR /&gt;Cristian&lt;BR /&gt;</description>
    <pubDate>Mon, 30 Mar 2009 12:05:47 GMT</pubDate>
    <dc:creator>cria_ro</dc:creator>
    <dc:date>2009-03-30T12:05:47Z</dc:date>
    <item>
      <title>How to link a dll file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870439#M71940</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I am trying to use the fftw libray under windows. I got a bunch of files libfftw3-3.def and libfftw3-3.dll. How do I compile my code so that it will link to this libraries? Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;The command: &amp;gt;ifort  /libs:dll OneD.f  libfftw3-3.def libfftw3-3.dll&lt;BR /&gt;&lt;BR /&gt;gives error: &lt;BR /&gt;&lt;BR /&gt;unrecognized surce type libfftw3-3.dll&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;libfftw3-3.dll : fatal error LNK1107: invalid or corrupt file:&lt;BR /&gt;&lt;BR /&gt;Best regards,&lt;BR /&gt;&lt;BR /&gt;Cristian</description>
      <pubDate>Sun, 29 Mar 2009 21:35:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870439#M71940</guid>
      <dc:creator>cria_ro</dc:creator>
      <dc:date>2009-03-29T21:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to link a dll file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870440#M71941</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
A .dll is not something you can link to. Usually what you link against is the "export library" (a .lib) that is created as a side-effect of building the DLL. The .def file can be an alternative, so try just leaving the .dll off of the command line and see if that helps.&lt;BR /&gt;</description>
      <pubDate>Sun, 29 Mar 2009 22:46:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870440#M71941</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-03-29T22:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to link a dll file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870441#M71942</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
I tried all the possible combiantions with .dll or/and .def in the compiling command but it does not work. &lt;BR /&gt;What about the visual tools? If I make a project, can I specifiy there to link to my library?&lt;BR /&gt;&lt;BR /&gt;Cristian&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Mar 2009 12:05:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870441#M71942</guid>
      <dc:creator>cria_ro</dc:creator>
      <dc:date>2009-03-30T12:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to link a dll file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870442#M71943</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
If you can't get it to work from the command line, you won't do better in Visual Studio.&lt;BR /&gt;&lt;BR /&gt;Where did you get this fftw library? Does it include a .lib?&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Mar 2009 12:28:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870442#M71943</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-03-30T12:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to link a dll file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870443#M71944</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; If you can't get it to work from the command line, you won't do better in Visual Studio.&lt;BR /&gt;&lt;BR /&gt;Where did you get this fftw library? Does it include a .lib?&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Hello,&lt;BR /&gt;&lt;BR /&gt;I downloaded from &lt;A href="http://fftw.org/install/windows.html" target="_blank"&gt;http://fftw.org/install/windows.html&lt;/A&gt;. It contains only .def and .dll files. Th installation manual says:&lt;BR /&gt;&lt;BR /&gt;You should be able to call them from any compiler. In order to link to these .dll files from Visual C++, you need to&lt;BR /&gt;create .lib "import libraries" for them, and can do so with the "lib" command that comes with VC++.  In particular, run:&lt;BR /&gt; lib /machine:i386 /def:libfftw3-3.def&lt;BR /&gt; lib /machine:i386 /def:libfftw3f-3.def&lt;BR /&gt; lib /machine:i386 /def:libfftw3l-3.def&lt;BR /&gt;&lt;BR /&gt;Unfortunately when I execute lib from the command line I get error file not found.&lt;BR /&gt;&lt;BR /&gt;Cristian&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Mar 2009 14:02:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870443#M71944</guid>
      <dc:creator>cria_ro</dc:creator>
      <dc:date>2009-03-30T14:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to link a dll file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870444#M71945</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Use Start &amp;gt; All Programs &amp;gt; Intel Software Development Tools &amp;gt; Intel Fortran Compiler x.x &amp;gt; Build Environment for applications on IA-32. This will give you a command environment that will define "lib". Make sure you have set default (cd) to the folder containing the .def file.&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Mar 2009 14:15:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870444#M71945</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-03-30T14:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to link a dll file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870445#M71946</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; Use Start &amp;gt; All Programs &amp;gt; Intel Software Development Tools &amp;gt; Intel Fortran Compiler x.x &amp;gt; Build Environment for applications on IA-32. This will give you a command environment that will define "lib". Make sure you have set default (cd) to the folder containing the .def file.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
Hello,&lt;BR /&gt;&lt;BR /&gt;Thank you for your instructions. It did something.&lt;BR /&gt;&lt;BR /&gt;D:fftw-3.2-dll&amp;gt;lib /machine:i386 /def&lt;BR /&gt;Microsoft  Library Manager Version&lt;BR /&gt;Copyright (C) Microsoft Corporation.&lt;BR /&gt;&lt;BR /&gt; Creating library libfftw3-3.lib and and object libfftw3f-3.exp&lt;BR /&gt;&lt;BR /&gt;Now what do I do to compile my codes?&lt;BR /&gt;&lt;BR /&gt;Cristian&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Mar 2009 16:07:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870445#M71946</guid>
      <dc:creator>cria_ro</dc:creator>
      <dc:date>2009-03-30T16:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to link a dll file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870446#M71947</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Add the .lib to your ifort line that links the application.&lt;BR /&gt;</description>
      <pubDate>Mon, 30 Mar 2009 16:39:51 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870446#M71947</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-03-30T16:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to link a dll file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870447#M71948</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; Add the .lib to your ifort line that links the application.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;I appologize, but could you give me an example of how should I compile the code if it has the dependencies in an external libray?&lt;BR /&gt;&lt;BR /&gt;Cristian &lt;BR /&gt;</description>
      <pubDate>Tue, 31 Mar 2009 16:14:42 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870447#M71948</guid>
      <dc:creator>cria_ro</dc:creator>
      <dc:date>2009-03-31T16:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to link a dll file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870448#M71949</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
ifort yourcode.f90 extlib.lib&lt;BR /&gt;</description>
      <pubDate>Tue, 31 Mar 2009 16:48:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870448#M71949</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2009-03-31T16:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to link a dll file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870449#M71950</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; A .dll is not something you can link to. Usually what you link against is the "export library" (a .lib) that is created as a side-effect of building the DLL. The .def file can be an alternative, so try just leaving the .dll off of the command line and see if that helps.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;It would be nice if the compiler driver would invoke LIB automagically when it sees a .def file on its linker command line...&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Apr 2009 13:59:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870449#M71950</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2009-04-01T13:59:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to link a dll file</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870450#M71951</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/391180"&gt;Jugoslav Dujic&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;
&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/336209"&gt;Steve Lionel (Intel)&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt; A .dll is not something you can link to. Usually what you link against is the "export library" (a .lib) that is created as a side-effect of building the DLL. The .def file can be an alternative, so try just leaving the .dll off of the command line and see if that helps.&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;It would be nice if the compiler driver would invoke LIB automagically when it sees a .def file on its linker command line...&lt;BR /&gt;&lt;/EM&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
It would be nice if I could just make it work.&lt;BR /&gt;</description>
      <pubDate>Sun, 05 Apr 2009 21:48:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/How-to-link-a-dll-file/m-p/870450#M71951</guid>
      <dc:creator>cria_ro</dc:creator>
      <dc:date>2009-04-05T21:48:36Z</dc:date>
    </item>
  </channel>
</rss>

