<?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: Already Defined Link Error in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Already-Defined-Link-Error/m-p/828198#M51101</link>
    <description>Someone may be able to give better answers, if you give more information. If you are working with 32-bit code, you would have the opportunity to set non-threaded options under one language and threaded in the other. Then,your linkmight searchboth kinds of libraries, producing such a conflict.</description>
    <pubDate>Fri, 16 Mar 2007 19:54:30 GMT</pubDate>
    <dc:creator>TimP</dc:creator>
    <dc:date>2007-03-16T19:54:30Z</dc:date>
    <item>
      <title>Already Defined Link Error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Already-Defined-Link-Error/m-p/828197#M51100</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I am having a problem linking a program that has both fortran and C code associated with it. Both the C code and the fortran are making calls to log10 function. When it goes to link it, the linker is returning this error:&lt;/P&gt;
&lt;P&gt;LIBCMT.lib(log10.obj) : error LNK2005: _log10 already defined in libmmt.lib(log10_stub.omu)&lt;/P&gt;
&lt;P&gt;What is causing this erroror how doI correct it?&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2007 19:01:56 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Already-Defined-Link-Error/m-p/828197#M51100</guid>
      <dc:creator>kstedman9</dc:creator>
      <dc:date>2007-03-16T19:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Already Defined Link Error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Already-Defined-Link-Error/m-p/828198#M51101</link>
      <description>Someone may be able to give better answers, if you give more information. If you are working with 32-bit code, you would have the opportunity to set non-threaded options under one language and threaded in the other. Then,your linkmight searchboth kinds of libraries, producing such a conflict.</description>
      <pubDate>Fri, 16 Mar 2007 19:54:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Already-Defined-Link-Error/m-p/828198#M51101</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2007-03-16T19:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Already Defined Link Error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Already-Defined-Link-Error/m-p/828199#M51102</link>
      <description>&lt;P&gt;What other information would you like to see? This code will be used on both 32 bit and 64 bit platforms. I currently compiling on 32 bit. Both libraries are from the static multi-threaded libraries and I have my flags set appropriatly for this. &lt;/P&gt;
&lt;P&gt;I am using Visual Studio 2005 SP1 for the C compiler and Intel Visual Fortran 9.1 for the fortran compiler.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Kevin&lt;/P&gt;</description>
      <pubDate>Fri, 16 Mar 2007 20:01:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Already-Defined-Link-Error/m-p/828199#M51102</guid>
      <dc:creator>kstedman9</dc:creator>
      <dc:date>2007-03-16T20:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Already Defined Link Error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Already-Defined-Link-Error/m-p/828200#M51103</link>
      <description>Tim has the right idea. Compare the settings for the run-time libraries to use between the property page Code Generation (C++) and Libraries (Fortran). They need to match. If C++ is specifying "Multithreaded (/MT)" then Fortran needs to have "Multithreaded" set too.</description>
      <pubDate>Fri, 16 Mar 2007 20:30:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Already-Defined-Link-Error/m-p/828200#M51103</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-03-16T20:30:45Z</dc:date>
    </item>
    <item>
      <title>Re: Already Defined Link Error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Already-Defined-Link-Error/m-p/828201#M51104</link>
      <description>&lt;P&gt;Well here are my compile flags so that you can see for yourself. That was the first thing I checked. &lt;/P&gt;
&lt;P&gt;C Compile flags:&lt;/P&gt;
&lt;P&gt;/GL &lt;FONT style="BACKGROUND-COLOR: #ffff00"&gt;/MT&lt;/FONT&gt; /openmp /W3 /nologo /Wp64 /O2 /DWIN32 /DNDEBUG /D_LIB /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_CPP_OVERLOAD_STANDARD_NAMES /D_CRT_NONSTDC_NO_DEPRECATE&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Fortran Compile Flags:&lt;/P&gt;
&lt;P&gt;/O2 /extend_source:132 /fpp /compile_only /real_size:32&lt;FONT style="BACKGROUND-COLOR: #ffff00"&gt;/MT&lt;/FONT&gt; /names:lowercase /DWIN32&lt;/P&gt;
&lt;P&gt;It is only the log10 function call that I can see that does it. I use many other calls from the math libraries and do not have this problem with them.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Mar 2007 12:52:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Already-Defined-Link-Error/m-p/828201#M51104</guid>
      <dc:creator>kstedman9</dc:creator>
      <dc:date>2007-03-19T12:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Already Defined Link Error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Already-Defined-Link-Error/m-p/828202#M51105</link>
      <description>I would be concerned about compatibility of some of those Microsoft options with a mixed Microsoft/Intel build. In particular, I doubtthat whole program optimization would work, and the Microsoft openmp has been documented as incompatible with Intel openmp.</description>
      <pubDate>Mon, 19 Mar 2007 13:36:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Already-Defined-Link-Error/m-p/828202#M51105</guid>
      <dc:creator>TimP</dc:creator>
      <dc:date>2007-03-19T13:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Already Defined Link Error</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Already-Defined-Link-Error/m-p/828203#M51106</link>
      <description>I think I see now. Does your C code also call log10? Try this. Add libmmt.lib to the command that links the program. The idea is to get libmmt searched first.</description>
      <pubDate>Mon, 19 Mar 2007 13:44:45 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Already-Defined-Link-Error/m-p/828203#M51106</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2007-03-19T13:44:45Z</dc:date>
    </item>
  </channel>
</rss>

