<?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 error LNK2019: unresolved external symbol in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832447#M168715</link>
    <description>&lt;P&gt;Many thanks again. All the sources were in temp.f and I used the command line to compile it (ifort temp.f)when got the errors.&lt;/P&gt;&lt;P&gt;Now if I separate the modules and the main program into tempM.f and tempP.f and compile with the commands you said, I get the same errors.&lt;/P&gt;&lt;P&gt;ifort c tempM.f&lt;/P&gt;&lt;P&gt;ifort tempP.f tempM.obj&lt;/P&gt;&lt;P&gt;The problem is solved when in temp.f I put all the functions inside the source of the program and keep just the subroutines in module SUBPROGRAMS.&lt;/P&gt;&lt;P&gt;Hamid&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2010 10:47:27 GMT</pubDate>
    <dc:creator>h_amini</dc:creator>
    <dc:date>2010-04-27T10:47:27Z</dc:date>
    <item>
      <title>error LNK2019: unresolved external symbol</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832443#M168711</link>
      <description>&lt;P&gt;To have explicit interfaces I put all the subroutines and functions of my program inside MODULE SUBPROGRAMS, but got LNK2019 errors like:&lt;/P&gt;&lt;P&gt;&lt;I&gt;TEMP.obj : error LNK2019: unresolved external symbol _F1 referenced in function&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;_SUBPROGRAMS_mp_VA1.&lt;/I&gt;&lt;/P&gt;&lt;P&gt;F1 and VA1 are function and subroutine in respect, and temp.f is compiled on 32 bit platform.&lt;/P&gt;&lt;P&gt;Any advice would be very much appreciated.&lt;/P&gt;&lt;P&gt;Hamid&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2010 14:15:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832443#M168711</guid>
      <dc:creator>h_amini</dc:creator>
      <dc:date>2010-04-26T14:15:23Z</dc:date>
    </item>
    <item>
      <title>error LNK2019: unresolved external symbol</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832444#M168712</link>
      <description>You need to link against the object file created when SUBPROGRAMS was compiled.</description>
      <pubDate>Mon, 26 Apr 2010 18:55:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832444#M168712</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-04-26T18:55:48Z</dc:date>
    </item>
    <item>
      <title>error LNK2019: unresolved external symbol</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832445#M168713</link>
      <description>&lt;P&gt;Many thanks Steve but Ive never done that. Could you explain more or make an example please. &lt;/P&gt;&lt;P&gt;I have to leave my office now so will reply you tomorrow if required.&lt;/P&gt;&lt;P&gt;Hamid&lt;/P&gt;</description>
      <pubDate>Mon, 26 Apr 2010 20:48:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832445#M168713</guid>
      <dc:creator>h_amini</dc:creator>
      <dc:date>2010-04-26T20:48:27Z</dc:date>
    </item>
    <item>
      <title>error LNK2019: unresolved external symbol</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832446#M168714</link>
      <description>If you are building from within Visual Studio, and the source of the module and the source of the program using the module are in the same project, this is done for you automatically.&lt;BR /&gt;&lt;BR /&gt;If you are building from the command line, you'd do something like this:&lt;BR /&gt;&lt;BR /&gt;ifort -c modulefile.f90&lt;BR /&gt;ifort mainprog.f90 modulefile.obj&lt;BR /&gt;&lt;BR /&gt;If this doesn't help, please show me how you are building the application.</description>
      <pubDate>Mon, 26 Apr 2010 20:57:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832446#M168714</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-04-26T20:57:00Z</dc:date>
    </item>
    <item>
      <title>error LNK2019: unresolved external symbol</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832447#M168715</link>
      <description>&lt;P&gt;Many thanks again. All the sources were in temp.f and I used the command line to compile it (ifort temp.f)when got the errors.&lt;/P&gt;&lt;P&gt;Now if I separate the modules and the main program into tempM.f and tempP.f and compile with the commands you said, I get the same errors.&lt;/P&gt;&lt;P&gt;ifort c tempM.f&lt;/P&gt;&lt;P&gt;ifort tempP.f tempM.obj&lt;/P&gt;&lt;P&gt;The problem is solved when in temp.f I put all the functions inside the source of the program and keep just the subroutines in module SUBPROGRAMS.&lt;/P&gt;&lt;P&gt;Hamid&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2010 10:47:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832447#M168715</guid>
      <dc:creator>h_amini</dc:creator>
      <dc:date>2010-04-27T10:47:27Z</dc:date>
    </item>
    <item>
      <title>error LNK2019: unresolved external symbol</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832448#M168716</link>
      <description>I think I am going to need to see an example of what didn't work. Please attach a ZIP of the sources that show the problem.</description>
      <pubDate>Tue, 27 Apr 2010 12:29:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832448#M168716</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-04-27T12:29:09Z</dc:date>
    </item>
    <item>
      <title>error LNK2019: unresolved external symbol</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832449#M168717</link>
      <description>&lt;P&gt;I am attaching a self-contained test. The entire source is in tempS.f, and the module and the program are pastedto tempMS.f and tempPS.f&lt;/P&gt;&lt;P&gt;The error I am getting now is:&lt;/P&gt;&lt;P&gt;&lt;I&gt;tempS.obj : error LNK2019: unresolved external symbol _CRACK referenced in funct&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;I&gt;ion _SUBPROGRAMS_mp_MESH&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;tempS.exe : fatal error LNK1120: 1 unresolved externals&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;Hamid&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2010 15:02:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832449#M168717</guid>
      <dc:creator>h_amini</dc:creator>
      <dc:date>2010-04-27T15:02:05Z</dc:date>
    </item>
    <item>
      <title>error LNK2019: unresolved external symbol</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832450#M168718</link>
      <description>I see. The problem is that you have a declaration of CRACK as INTEGER in subroutine MESH, where CRACK is a module procedure. As a module procedure, CRACK defines its own explicit interface. When you have a separate declaration of CRACK as INTEGER, that means that CRACK is an external procedure and it hides the module procedure.&lt;BR /&gt;&lt;BR /&gt;Remove all declarations of the module procedures in other program units - let the module serve as the declaration.</description>
      <pubDate>Tue, 27 Apr 2010 15:40:19 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832450#M168718</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2010-04-27T15:40:19Z</dc:date>
    </item>
    <item>
      <title>error LNK2019: unresolved external symbol</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832451#M168719</link>
      <description>&lt;P&gt;Yes, you could solve the problem. Many many thanks.&lt;/P&gt;&lt;P&gt;Hamid&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2010 16:16:32 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2019-unresolved-external-symbol/m-p/832451#M168719</guid>
      <dc:creator>h_amini</dc:creator>
      <dc:date>2010-04-27T16:16:32Z</dc:date>
    </item>
  </channel>
</rss>

