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"><<a href="mailto:rnelias@gmail.com">rnelias@gmail.com</a>></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've already had this problem when linking Fortran programs against HDF5 library...<br><br>In Visual Studio, there's an "Ignore Specific Library" option (Linker/Input in project settings tab) where I'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"><<a href="mailto:berk.geveci@kitware.com" target="_blank">berk.geveci@kitware.com</a>></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 <<a href="mailto:paul.m.edwards@gmail.com" target="_blank">paul.m.edwards@gmail.com</a>> wrote:<br>
> Hi,<br>
><br>
> I have some plugins to ParaView that use Fortran and now I am having<br>
> problems on windows with linking (it all works for GNU and linux). I am<br>
> using nmake makefiles with visual studio 2008 and intel fortran 10.1. These<br>
> are the link errors:<br>
><br>
> 8<-----------------------------------------------------------------------<br>
> LIBCMT.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in<br>
> MSVCRT.lib(MSVCR90.dll)<br>
> LIBCMT.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in<br>
> MSVCRT.lib(MSVCR90.dll)<br>
> LIBCMT.lib(invarg.obj) : error LNK2005: __invalid_parameter_noinfo already<br>
> defined in MSVCRT.lib(MSVCR90.dll)<br>
> LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in<br>
> MSVCRT.lib(cinitexe.obj)<br>
> LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in<br>
> MSVCRT.lib(cinitexe.obj)<br>
> LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in<br>
> MSVCRT.lib(cinitexe.obj)<br>
> LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in<br>
> MSVCRT.lib(cinitexe.obj)<br>
> LIBCMT.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)"<br>
> (?terminate@@YAXXZ) already defined in MSVCRT.lib(MSVCR90.dll)<br>
> LIBCMT.lib(winxfltr.obj) : error LNK2005: ___CppXcptFilter already defined<br>
> in MSVCRT.lib(MSVCR90.dll)<br>
> LIBCMT.lib(crtheap.obj) : error LNK2005: __malloc_crt already defined in<br>
> MSVCRT.lib(MSVCR90.dll)<br>
> LIBCMT.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined<br>
> in MSVCRT.lib(MSVCR90.dll)<br>
> LIBCMT.lib(tidtable.obj) : error LNK2005: __encoded_null already defined in<br>
> MSVCRT.lib(MSVCR90.dll)<br>
> LIBCMT.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined<br>
> in MSVCRT.lib(MSVCR90.dll)<br>
> LIBCMT.lib(mlock.obj) : error LNK2005: __unlock already defined in<br>
> MSVCRT.lib(MSVCR90.dll)<br>
> LIBCMT.lib(mlock.obj) : error LNK2005: __lock already defined in<br>
> MSVCRT.lib(MSVCR90.dll)<br>
> Creating library CalculateSpanSMPlugin.lib and object<br>
> CalculateSpanSMPlugin.exp<br>
> LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other<br>
> libs; use /NODEFAULTLIB:library<br>
> LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other<br>
> libs; use /NODEFAULTLIB:library<br>
> libifcoremt.lib(for_main.obj) : error LNK2019: unresolved external symbol<br>
> _MAIN__ referenced in function _main<br>
> CalculateSpanSMPlugin.dll : fatal error LNK1120: 1 unresolved externals<br>
> LINK failed. with 1120<br>
> NMAKE : fatal error U1077:<br>
> 'D:\scratch\ss02-build\cmake-2.6.4-win32-x86\bin\cmake.exe' : return code<br>
> '0xffffffff'<br>
> Stop.<br>
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio<br>
> 9.0\VC\BIN\nmake.exe"' : return code '0x2'<br>
> Stop.<br>
> NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio<br>
> 9.0\VC\BIN\nmake.exe"' : return code '0x2'<br>
> Stop.<br>
> ----------------------------------------------------------------------->8<br>
><br>
> Can anyone help? Am I missing something from my CMakeLists.txt file? And,<br>
> is it just me or is compilation so much more complicated on windows?!<br>
><br>
> Any help would be appreciated,<br>
> Paul<br>
><br>
</div></div>> _______________________________________________<br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at<br>
> <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:<br>
> <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>
><br>
><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>