Hi,<br><br>Thanks for the comments.  I found the solution to my problem here:<br><br>    <a href="http://www.cmake.org/pipermail/cmake/2009-June/030420.html" target="_blank">http://www.cmake.org/pipermail/cmake/2009-June/030420.html</a><br>

<br>Regards,<br>Paul<br><br><div class="gmail_quote">2009/10/9 Renato Elias <span dir="ltr">&lt;<a href="mailto:rnelias@gmail.com">rnelias@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I&#39;ve already had this problem when linking Fortran programs against HDF5 library...<br><br>In Visual Studio, there&#39;s an &quot;Ignore Specific Library&quot; option (Linker/Input in project settings tab) where I&#39;ve set MSVCRT to solve it.<br>


<br>Regards<br><br>Renato.<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Oct 8, 2009 at 10:37 AM, Berk Geveci <span dir="ltr">&lt;<a href="mailto:berk.geveci@kitware.com" target="_blank">berk.geveci@kitware.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

This sort of thing happens when a 3rd party library (I guess the<br>
Fortran library in this case) is linked against a different C library<br>
than ParaView is linking against. In this case, one of the is using<br>
libcmt.lib and the other one is msvcrt.lib. There are linker flags<br>
that control which one you use but this is where my knowledge of<br>
Windows linking ends :-)<br>
<div><div></div><div><br>
On Tue, Oct 6, 2009 at 5:54 AM, Paul Edwards &lt;<a href="mailto:paul.m.edwards@gmail.com" target="_blank">paul.m.edwards@gmail.com</a>&gt; wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; I have some plugins to ParaView that use Fortran and now I am having<br>
&gt; problems on windows with linking (it all works for GNU and linux).  I am<br>
&gt; using nmake makefiles with visual studio 2008 and intel fortran 10.1.  These<br>
&gt; are the link errors:<br>
&gt;<br>
&gt; 8&lt;-----------------------------------------------------------------------<br>
&gt; LIBCMT.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in<br>
&gt; MSVCRT.lib(MSVCR90.dll)<br>
&gt; LIBCMT.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in<br>
&gt; MSVCRT.lib(MSVCR90.dll)<br>
&gt; LIBCMT.lib(invarg.obj) : error LNK2005: __invalid_parameter_noinfo already<br>
&gt; defined in MSVCRT.lib(MSVCR90.dll)<br>
&gt; LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in<br>
&gt; MSVCRT.lib(cinitexe.obj)<br>
&gt; LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in<br>
&gt; MSVCRT.lib(cinitexe.obj)<br>
&gt; LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in<br>
&gt; MSVCRT.lib(cinitexe.obj)<br>
&gt; LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in<br>
&gt; MSVCRT.lib(cinitexe.obj)<br>
&gt; LIBCMT.lib(hooks.obj) : error LNK2005: &quot;void __cdecl terminate(void)&quot;<br>
&gt; (?terminate@@YAXXZ) already defined in MSVCRT.lib(MSVCR90.dll)<br>
&gt; LIBCMT.lib(winxfltr.obj) : error LNK2005: ___CppXcptFilter already defined<br>
&gt; in MSVCRT.lib(MSVCR90.dll)<br>
&gt; LIBCMT.lib(crtheap.obj) : error LNK2005: __malloc_crt already defined in<br>
&gt; MSVCRT.lib(MSVCR90.dll)<br>
&gt; LIBCMT.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined<br>
&gt; in MSVCRT.lib(MSVCR90.dll)<br>
&gt; LIBCMT.lib(tidtable.obj) : error LNK2005: __encoded_null already defined in<br>
&gt; MSVCRT.lib(MSVCR90.dll)<br>
&gt; LIBCMT.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined<br>
&gt; in MSVCRT.lib(MSVCR90.dll)<br>
&gt; LIBCMT.lib(mlock.obj) : error LNK2005: __unlock already defined in<br>
&gt; MSVCRT.lib(MSVCR90.dll)<br>
&gt; LIBCMT.lib(mlock.obj) : error LNK2005: __lock already defined in<br>
&gt; MSVCRT.lib(MSVCR90.dll)<br>
&gt;    Creating library CalculateSpanSMPlugin.lib and object<br>
&gt; CalculateSpanSMPlugin.exp<br>
&gt; LINK : warning LNK4098: defaultlib &#39;MSVCRT&#39; conflicts with use of other<br>
&gt; libs; use /NODEFAULTLIB:library<br>
&gt; LINK : warning LNK4098: defaultlib &#39;LIBCMT&#39; conflicts with use of other<br>
&gt; libs; use /NODEFAULTLIB:library<br>
&gt; libifcoremt.lib(for_main.obj) : error LNK2019: unresolved external symbol<br>
&gt; _MAIN__ referenced in function _main<br>
&gt; CalculateSpanSMPlugin.dll : fatal error LNK1120: 1 unresolved externals<br>
&gt; LINK failed. with 1120<br>
&gt; NMAKE : fatal error U1077:<br>
&gt; &#39;D:\scratch\ss02-build\cmake-2.6.4-win32-x86\bin\cmake.exe&#39; : return code<br>
&gt; &#39;0xffffffff&#39;<br>
&gt; Stop.<br>
&gt; NMAKE : fatal error U1077: &#39;&quot;C:\Program Files\Microsoft Visual Studio<br>
&gt; 9.0\VC\BIN\nmake.exe&quot;&#39; : return code &#39;0x2&#39;<br>
&gt; Stop.<br>
&gt; NMAKE : fatal error U1077: &#39;&quot;C:\Program Files\Microsoft Visual Studio<br>
&gt; 9.0\VC\BIN\nmake.exe&quot;&#39; : return code &#39;0x2&#39;<br>
&gt; Stop.<br>
&gt; -----------------------------------------------------------------------&gt;8<br>
&gt;<br>
&gt; Can anyone help?  Am I missing something from my CMakeLists.txt file?  And,<br>
&gt; is it just me or is compilation so much more complicated on windows?!<br>
&gt;<br>
&gt; Any help would be appreciated,<br>
&gt; Paul<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
</blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Renato N. Elias<br>===================================<br>High Performance Computing Center (NACAD)<br>Federal University of Rio de Janeiro (UFRJ)<br>
Rio de Janeiro, Brazil<br>

<br>Sent from Rio De Janeiro, RJ, Brazil
</font></blockquote></div><br>