<?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: Fortran Error LNK2019 - Unresolved External Symbol D_ZANLY referenced in function MAIN_ in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Error-LNK2019-Unresolved-External-Symbol-D-ZANLY/m-p/1322110#M158019</link>
    <description>&lt;P&gt;Thanks for the reply. You're right - on second look, I have missed out the following line in the code: include "link_fnl_shared_imsl.h". This has resolved the problem.&lt;/P&gt;</description>
    <pubDate>Thu, 14 Oct 2021 21:52:15 GMT</pubDate>
    <dc:creator>Wayne_Y</dc:creator>
    <dc:date>2021-10-14T21:52:15Z</dc:date>
    <item>
      <title>Fortran Error LNK2019 - Unresolved External Symbol D_ZANLY referenced in function MAIN_</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Error-LNK2019-Unresolved-External-Symbol-D-ZANLY/m-p/1321987#M158005</link>
      <description>&lt;P&gt;I have some issues using the IMSL ZANLY function with Fortran and Visual Studios 2019. I am trying to follow this example (&lt;A href="https://help.imsl.com/fortran/6.0/math/default.htm?turl=zanly.htm" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.imsl.com/fortran/6.0/math/default.htm?turl=zanly.htm&lt;/A&gt;) with my code below for your reference, and was given the following error LNK2019.&lt;/P&gt;
&lt;P&gt;I have added the library directories for the IMSL functions in the project properties (following&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://help.imsl.com/fortran/2021.0/common/readme.html#link-options" target="_blank" rel="nofollow noopener noreferrer"&gt;https://help.imsl.com/fortran/2021.0/common/readme.html#link-options&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;under "USING FNL WITH VISUAL STUDIOS 2017". I also tried changing my LINKER &amp;gt; SYSTEM &amp;gt; SUBSYSTEM from console to windows but that doesn't work and generated an additional error saying " error LNK2019: unresolved external symbol WinMain referenced in function "int__cdeclinvoke_main(void)"(?invoke_main@@YAHXZ) ". Does any one have any suggestions to resolve this please?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;program Console

USE ZANLY_INT
USE WRCRN_INT
implicit none

INTEGER    :: INFO(3), NGUESS, NNEW
COMPLEX*16 :: F, Z(3), ZINIT(3)
EXTERNAL      F    
DATA ZINIT/3*(1.0,1.0)/

NNEW   = 3
NGUESS = 3

CALL D_ZANLY (F, Z, NNEW=NNEW, NGUESS=NGUESS,ZINIT=ZINIT, INFO=INFO)
!CALL D_WRCRN ('The zeros are', Z)

end program Console

COMPLEX*16 FUNCTION F (Z)
COMPLEX*16 :: Z
F = Z**3 + 5.0*Z**2 + 9.0*Z + 45.0

RETURN
END&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 13:26:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Error-LNK2019-Unresolved-External-Symbol-D-ZANLY/m-p/1321987#M158005</guid>
      <dc:creator>Wayne_Y</dc:creator>
      <dc:date>2021-10-14T13:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran Error LNK2019 - Unresolved External Symbol D_ZANLY referenced in function MAIN_</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Error-LNK2019-Unresolved-External-Symbol-D-ZANLY/m-p/1322006#M158010</link>
      <description>&lt;P&gt;You need to specify that the IMSL libraries are to be used at link time. I tried your example code with old versions of IMSL FNL (version 7) and IFort (2013 SP1), and the example built and worked fine. The build command that I used was&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;ifort /Qimsl xzanly.f90&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are building in Visual Studio, see the documentation that came with your versions of IMSL, Intel Fortran and Visual Studio.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 15:26:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Error-LNK2019-Unresolved-External-Symbol-D-ZANLY/m-p/1322006#M158010</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2021-10-14T15:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Fortran Error LNK2019 - Unresolved External Symbol D_ZANLY referenced in function MAIN_</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Error-LNK2019-Unresolved-External-Symbol-D-ZANLY/m-p/1322110#M158019</link>
      <description>&lt;P&gt;Thanks for the reply. You're right - on second look, I have missed out the following line in the code: include "link_fnl_shared_imsl.h". This has resolved the problem.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Oct 2021 21:52:15 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Fortran-Error-LNK2019-Unresolved-External-Symbol-D-ZANLY/m-p/1322110#M158019</guid>
      <dc:creator>Wayne_Y</dc:creator>
      <dc:date>2021-10-14T21:52:15Z</dc:date>
    </item>
  </channel>
</rss>

