[Paraview] Fortran in ParaView plugins

Paul Edwards paul.m.edwards at gmail.com
Tue Oct 6 05:54:42 EDT 2009


Hi,

I have some plugins to ParaView that use Fortran and now I am having
problems on windows with linking (it all works for GNU and linux).  I am
using nmake makefiles with visual studio 2008 and intel fortran 10.1.  These
are the link errors:

8<-----------------------------------------------------------------------
LIBCMT.lib(crt0dat.obj) : error LNK2005: __amsg_exit already defined in
MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0dat.obj) : error LNK2005: __initterm_e already defined in
MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(invarg.obj) : error LNK2005: __invalid_parameter_noinfo already
defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in
MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in
MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in
MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in
MSVCRT.lib(cinitexe.obj)
LIBCMT.lib(hooks.obj) : error LNK2005: "void __cdecl terminate(void)"
(?terminate@@YAXXZ) already defined in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(winxfltr.obj) : error LNK2005: ___CppXcptFilter already defined
in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(crtheap.obj) : error LNK2005: __malloc_crt already defined in
MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(tidtable.obj) : error LNK2005: __encode_pointer already defined
in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(tidtable.obj) : error LNK2005: __encoded_null already defined in
MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(tidtable.obj) : error LNK2005: __decode_pointer already defined
in MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(mlock.obj) : error LNK2005: __unlock already defined in
MSVCRT.lib(MSVCR90.dll)
LIBCMT.lib(mlock.obj) : error LNK2005: __lock already defined in
MSVCRT.lib(MSVCR90.dll)
   Creating library CalculateSpanSMPlugin.lib and object
CalculateSpanSMPlugin.exp
LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
libs; use /NODEFAULTLIB:library
LINK : warning LNK4098: defaultlib 'LIBCMT' conflicts with use of other
libs; use /NODEFAULTLIB:library
libifcoremt.lib(for_main.obj) : error LNK2019: unresolved external symbol
_MAIN__ referenced in function _main
CalculateSpanSMPlugin.dll : fatal error LNK1120: 1 unresolved externals
LINK failed. with 1120
NMAKE : fatal error U1077:
'D:\scratch\ss02-build\cmake-2.6.4-win32-x86\bin\cmake.exe' : return code
'0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
----------------------------------------------------------------------->8

Can anyone help?  Am I missing something from my CMakeLists.txt file?  And,
is it just me or is compilation so much more complicated on windows?!

Any help would be appreciated,
Paul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20091006/ab49a0af/attachment.htm>


More information about the ParaView mailing list