<?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: error LNK2001 &amp; error LNK2019 in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881536#M75400</link>
    <description>the only reason is: you must link some lib files, while Microsoft change these lib files and they forget to tell you, or you need see some more informations about the changes from vc6 to vs2005!</description>
    <pubDate>Mon, 10 Dec 2007 17:10:28 GMT</pubDate>
    <dc:creator>shanzy1980</dc:creator>
    <dc:date>2007-12-10T17:10:28Z</dc:date>
    <item>
      <title>error LNK2001 &amp; error LNK2019</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881525#M75389</link>
      <description>&lt;DIV&gt;&lt;FONT face="Verdana" size="2"&gt;&lt;FONT face="Times New Roman" size="3"&gt;I am trying 
to use Intel Fortran Compiler v10 and Visual Studio 2005 to build two projects 
migrated from MSDEV 6 with Compaq Fortran compiler (of course those projects 
built without any error in MSDEV 6).&lt;BR /&gt;&lt;BR /&gt;However with VS 2005 I got two 
error:&lt;BR /&gt;&lt;BR /&gt;1. One project linked without any error, the same file used in 
other project got link error 2019. The project settings are identical.&lt;BR /&gt;&lt;BR /&gt;2. 
And link error 2001 on Fortran lib when it's using the external symbol defined 
in C code.&lt;BR /&gt;&lt;BR /&gt;Any help it's very appreciated. &lt;BR /&gt;&lt;BR /&gt;Thanks in 
advance.....&lt;/FONT&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Dec 2007 14:12:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881525#M75389</guid>
      <dc:creator>johnwoo</dc:creator>
      <dc:date>2007-12-07T14:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2001 &amp; error LNK2019</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881526#M75390</link>
      <description>Please show the exact and complete text of all the messages. The numbers alone tell us very little.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Dec 2007 16:10:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881526#M75390</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-12-07T16:10:05Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2001 &amp; error LNK2019</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881527#M75391</link>
      <description>Thanks Steve for your help.&lt;BR /&gt;&lt;BR /&gt;Here is the error:&lt;BR /&gt;deli_lib.lib(testv.obj) : error LNK2019: unresolved external symbol _simfx@0 referenced in function testv&lt;BR /&gt;&lt;BR /&gt;For code:&lt;BR /&gt;  ....&lt;BR /&gt;   CALL simfx&lt;BR /&gt;   ....&lt;BR /&gt;&lt;BR /&gt;C code:&lt;BR /&gt;  void simfx(void)&lt;BR /&gt;   ....&lt;BR /&gt;&lt;BR /&gt;I checked other post and changed to call in for to:&lt;BR /&gt;!dec$ attributes default, stdcall, alias:'simfx' :: simfx&lt;BR /&gt;&lt;BR /&gt;First of all not sure if this is correct, however I got compiling error:&lt;BR /&gt;&lt;BR /&gt;C:	est	estv.for(1120) : Error: This symbol has multiply declared DEC$ ATTRIBUTES ALIAS attribute. [E0]&lt;BR /&gt;: Error: This symbol has multiply declared DEC$ ATTRIBUTES STDCALL attribute. [E0]&lt;BR /&gt;C:	est	estv.for(1120) : Error: This symbol has multiply declared DEC$ ATTRIBUTES DEFAULT attribute. [E0]&lt;BR /&gt;compilation aborted for C:	est	estv.for (code 1)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Dec 2007 16:42:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881527#M75391</guid>
      <dc:creator>johnwoo</dc:creator>
      <dc:date>2007-12-07T16:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2001 &amp; error LNK2019</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881528#M75392</link>
      <description>As you're changing the source code, it might be better to use ISO C binding.&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Dec 2007 17:09:33 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881528#M75392</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2007-12-07T17:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2001 &amp; error LNK2019</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881529#M75393</link>
      <description>Steve, is there any way I can avoid to change source code? (my code still need to be compitable with MSDEV 6 and Linux)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 07 Dec 2007 17:18:34 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881529#M75393</guid>
      <dc:creator>johnwoo</dc:creator>
      <dc:date>2007-12-07T17:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2001 &amp; error LNK2019</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881530#M75394</link>
      <description>For simfx, change "stdcall" to "c" and remove the alias. I don't see how this would have worked under CVF. There's something else going on you're not showing us.&lt;BR /&gt;&lt;BR /&gt;Please show us the ATTRIBUTES lines for EO.&lt;BR /&gt;</description>
      <pubDate>Sat, 08 Dec 2007 00:08:26 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881530#M75394</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-12-08T00:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2001 &amp; error LNK2019</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881531#M75395</link>
      <description>You are right Steve, here is the line (in .for) I corrected and it works:&lt;BR /&gt;&lt;BR /&gt;!DEC$ ATTRIBUTES C :: simfx&lt;BR /&gt;!DEC$ ATTRIBUTES C :: simfx1&lt;BR /&gt;
&lt;BR /&gt;&lt;BR /&gt;However if I tried to use 'extern "C" void simfx()' in simfx code, and compile it as C++ I got link error on line: __declspec(dllimport). I had to remove extern "C" and compile it as C then it has no link error. &lt;BR /&gt;&lt;BR /&gt;simfx c code:&lt;BR /&gt;void simfx_common()&lt;BR /&gt;.....&lt;BR /&gt;void simfx () {&lt;BR /&gt; simfx_common();&lt;BR /&gt;.....}&lt;BR /&gt;void simfx1() {&lt;BR /&gt; simfx_common();&lt;BR /&gt;.....}&lt;BR /&gt;&lt;BR /&gt;However I still have another issue in this code (next link error):&lt;BR /&gt;testv.lib(dual.obj) : error LNK2019: unresolved external symbol _dummy_counter@0 referenced in function _visin&lt;BR /&gt;testv.lib(dual.obj) : error LNK2019: unresolved external symbol _initlog@0 referenced in function _visin&lt;BR /&gt;testv.lib(dual.obj) : error LNK2019: unresolved external symbol _trnl@24 referenced in function _visin&lt;BR /&gt;&lt;BR /&gt;The way it's in .for code:&lt;BR /&gt;....&lt;BR /&gt;ISTATUS = dummy_counter()&lt;BR /&gt;....&lt;BR /&gt;ISTATUS = initcaelog()&lt;BR /&gt;....&lt;BR /&gt;ISTATUS = TRNL('RUN_VISUAL',LOG_LEN,INTERFACE,0)&lt;BR /&gt;&lt;BR /&gt;all declared in a seperate lib which I linked to my C project, I have no control on that lib, how I could get rid of such link errors?&lt;BR /&gt;&lt;BR /&gt;Thanks a million.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sat, 08 Dec 2007 23:43:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881531#M75395</guid>
      <dc:creator>johnwoo</dc:creator>
      <dc:date>2007-12-08T23:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2001 &amp; error LNK2019</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881532#M75396</link>
      <description>Not enough information - I'd need to see the actual library and code. If you want to submit an Intel Premier Support issue and attach a ZIP of your projects and ask that it be assigned to me, I'll take a look.&lt;BR /&gt;</description>
      <pubDate>Sun, 09 Dec 2007 14:33:37 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881532#M75396</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-12-09T14:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2001 &amp; error LNK2019</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881533#M75397</link>
      <description>Steve, I am trying to find a way how to submit the support request as I can't send any code to you guys due to data issues. &lt;BR /&gt;&lt;BR /&gt;However, I did another test and put those modules under another projetc (in same solution) and there is no link errors, what could cause such errors under my current project?&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Dec 2007 14:26:50 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881533#M75397</guid>
      <dc:creator>johnwoo</dc:creator>
      <dc:date>2007-12-10T14:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2001 &amp; error LNK2019</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881534#M75398</link>
      <description>Problem fixed, automated conversion set /iface:cvf instead of /iface:cref (OK for another project but not for the current one), maybe the bug in automated conversion tool?.....&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Dec 2007 14:38:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881534#M75398</guid>
      <dc:creator>johnwoo</dc:creator>
      <dc:date>2007-12-10T14:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2001 &amp; error LNK2019</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881535#M75399</link>
      <description>Did you have /iface:cref in the CVF project? If so, then yes, that's a tool bug and please report it.&lt;BR /&gt;</description>
      <pubDate>Mon, 10 Dec 2007 16:11:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881535#M75399</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-12-10T16:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: error LNK2001 &amp; error LNK2019</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881536#M75400</link>
      <description>the only reason is: you must link some lib files, while Microsoft change these lib files and they forget to tell you, or you need see some more informations about the changes from vc6 to vs2005!</description>
      <pubDate>Mon, 10 Dec 2007 17:10:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/error-LNK2001-error-LNK2019/m-p/881536#M75400</guid>
      <dc:creator>shanzy1980</dc:creator>
      <dc:date>2007-12-10T17:10:28Z</dc:date>
    </item>
  </channel>
</rss>

