<?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 You have a superfluous file,  in Intel® oneAPI Math Kernel Library</title>
    <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Diffuculties-in-linking-intel-fortran-MKL-library-in-MSVS15/m-p/1101687#M23922</link>
    <description>&lt;P&gt;You have a superfluous file, "Source1.f90", in your project directory. You cannot have two main programs in a project, so remove it. Your project is not configured to use MKL. See&amp;nbsp;https://software.intel.com/en-us/node/528341 .&lt;/P&gt;

&lt;P&gt;An alternative is to make a copy of the old project that is working, and modifying it by replacing the old directory names and file names with appropriate new names.&lt;/P&gt;</description>
    <pubDate>Wed, 05 Oct 2016 09:46:16 GMT</pubDate>
    <dc:creator>mecej4</dc:creator>
    <dc:date>2016-10-05T09:46:16Z</dc:date>
    <item>
      <title>Diffuculties in linking intel fortran MKL library in MSVS15</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Diffuculties-in-linking-intel-fortran-MKL-library-in-MSVS15/m-p/1101686#M23921</link>
      <description>&lt;P&gt;Hi! Thanks in advance for spending time reading the thread and offering your precious advice and insight.&lt;/P&gt;

&lt;P&gt;I am using MSVS15 + Intel Parallel Studio 17. I am compiling the example project from &lt;A href="https://software.intel.com/en-us/articles/how-to-build-mkl-application-in-intel-visual-fotran-msvc2005"&gt;this address&lt;/A&gt;. If you go down on the page or search for '&lt;SPAN class="file"&gt;&lt;A href="https://community.intel.com/legacyfs/online/drupal_files/managed/04/b4/DFT_RtoCCS.zip"&gt;DFT_RtoCCS.zip&lt;/A&gt;' you will immediately find the project.&lt;/SPAN&gt;&lt;/P&gt;

&lt;P&gt;The example project works fine until I build a new project and copy the source files over there. I basically set up everything (including path, linker lib path, additional dependencies) exactly the same way as the old project. It doesn't work whether I use step 3 or step 4 to configure the static libraries. The linker complains:&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;Severity	Code	Description	Project	File	Line	Suppression State
Error		fatal error LNK1120: 11 unresolved externals		Debug\Console1.exe		
Error		error LNK2019: unresolved external symbol _dfti_error_message_external referenced in function _DFTI_EXAMPLE_STATUS_PRINT		dfti_example_status_print.obj		
Error		error LNK2019: unresolved external symbol _dfti_free_descriptor_external referenced in function _MAIN__		real_1d_ccs_double_ex6.obj		
Error		error LNK2019: unresolved external symbol _dfti_set_value_dblval referenced in function _MAIN__		real_1d_ccs_double_ex6.obj		
Error		error LNK2019: unresolved external symbol _dfti_set_value_intval referenced in function _MAIN__		real_1d_ccs_double_ex6.obj		
Error		error LNK2019: unresolved external symbol _dfti_commit_descriptor_external referenced in function _MAIN__		real_1d_ccs_double_ex6.obj		
Error		error LNK2019: unresolved external symbol _dfti_error_class_external referenced in function _MAIN__		real_1d_ccs_double_ex6.obj		
Error		error LNK2019: unresolved external symbol _dfti_set_value_intvec referenced in function _MAIN__		real_1d_ccs_double_ex6.obj		
Error		error LNK2019: unresolved external symbol _DCOPY referenced in function _MAIN__		real_1d_ccs_double_ex6.obj		
Error		error LNK2019: unresolved external symbol _dfti_compute_backward_dd referenced in function _MAIN__		real_1d_ccs_double_ex6.obj		
Error		error LNK2019: unresolved external symbol _dfti_compute_forward_dd referenced in function _MAIN__		real_1d_ccs_double_ex6.obj		
Error		error LNK2019: unresolved external symbol _dfti_create_descriptor_1d referenced in function _MAIN__		real_1d_ccs_double_ex6.obj		&lt;/PRE&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;

&lt;P&gt;More information for diagnose:&lt;/P&gt;

&lt;P&gt;Compiler command in old project:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;/nologo /O2 /I"C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.0.109\windows\mkl\lib\ia32_win" /module:"Release\\" /object:"Release\\" /Fd"Release\vc140.pdb" /libs:static /threads /c&lt;/PRE&gt;

&lt;P&gt;Command line in new project:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;/nologo /O2 /I"C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.0.109\windows\mkl\lib\ia32_win" /module:"Release\\" /object:"Release\\" /Fd"Release\vc140.pdb" /libs:static /threads /c&lt;/PRE&gt;

&lt;P&gt;Command line for linker in old project:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;/OUT:"Release\DFT_RtoCCS.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.0.109\windows\mkl\lib\ia32_win" /MANIFEST /MANIFESTFILE:"Release\DFT_RtoCCS.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /SUBSYSTEM:CONSOLE /IMPLIB:"C:\Users\***** ***\Desktop\DFT_RtoCCS\Release\DFT_RtoCCS.lib" mkl_intel_c_dll.lib mkl_core_dll.lib mkl_intel_thread_dll.lib&lt;/PRE&gt;

&lt;P&gt;Command line for linker in new project:&lt;/P&gt;

&lt;PRE class="brush:fortran;"&gt;/OUT:"Release\Console1.exe" /INCREMENTAL:NO /NOLOGO /LIBPATH:"C:\Program Files (x86)\IntelSWTools\compilers_and_libraries_2017.0.109\windows\mkl\lib\ia32_win" /MANIFEST /MANIFESTFILE:"Release\Console1.exe.intermediate.manifest" /MANIFESTUAC:"level='asInvoker' uiAccess='false'" /SUBSYSTEM:CONSOLE /IMPLIB:"C:\Users\***** ***\Desktop\New folder\Console1\Release\Console1.lib" mkl_intel_c_dll.lib mkl_core_dll.lib mkl_intel_thread_dll.lib&lt;/PRE&gt;

&lt;P&gt;There are barely any difference. The old project works, the new one just cannot find those functions in library and failed. I attached the compressed project&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2016 18:22:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Diffuculties-in-linking-intel-fortran-MKL-library-in-MSVS15/m-p/1101686#M23921</guid>
      <dc:creator>Yuwei_Z_</dc:creator>
      <dc:date>2016-10-04T18:22:59Z</dc:date>
    </item>
    <item>
      <title>You have a superfluous file,</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Diffuculties-in-linking-intel-fortran-MKL-library-in-MSVS15/m-p/1101687#M23922</link>
      <description>&lt;P&gt;You have a superfluous file, "Source1.f90", in your project directory. You cannot have two main programs in a project, so remove it. Your project is not configured to use MKL. See&amp;nbsp;https://software.intel.com/en-us/node/528341 .&lt;/P&gt;

&lt;P&gt;An alternative is to make a copy of the old project that is working, and modifying it by replacing the old directory names and file names with appropriate new names.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:46:16 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Diffuculties-in-linking-intel-fortran-MKL-library-in-MSVS15/m-p/1101687#M23922</guid>
      <dc:creator>mecej4</dc:creator>
      <dc:date>2016-10-05T09:46:16Z</dc:date>
    </item>
    <item>
      <title>Quote:mecej4 wrote:</title>
      <link>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Diffuculties-in-linking-intel-fortran-MKL-library-in-MSVS15/m-p/1101688#M23923</link>
      <description>&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;mecej4 wrote:&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;You have a superfluous file, "Source1.f90", in your project directory. You cannot have two main programs in a project, so remove it. Your project is not configured to use MKL. See&amp;nbsp;&lt;A href="https://software.intel.com/en-us/node/528341"&gt;https://software.intel.com/en-us/node/528341&lt;/A&gt; .&lt;/P&gt;

&lt;P&gt;An alternative is to make a copy of the old project that is working, and modifying it by replacing the old directory names and file names with appropriate new names.&lt;/P&gt;

&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;

&lt;P&gt;Thank you! No, the file is not in the project, it is removed from the project.&lt;/P&gt;

&lt;P&gt;I somehow figured out that my MSVS15 or my Intel Parallel studio XE is broken. So I reinstalled both of them and now the exact same project linked correctly and compiled perfectly. I was so bothered yesterday that I was even considering reinstall my windows 10 pro.&lt;/P&gt;

&lt;P&gt;LOL, The last resort to fix program things is always reinstall.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Oct 2016 14:04:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-oneAPI-Math-Kernel-Library/Diffuculties-in-linking-intel-fortran-MKL-library-in-MSVS15/m-p/1101688#M23923</guid>
      <dc:creator>Yuwei_Z_</dc:creator>
      <dc:date>2016-10-05T14:04:00Z</dc:date>
    </item>
  </channel>
</rss>

