Ticket #636: part0001.html

File part0001.html, 4.6 KB (added by Jayesh Krishna, 6 months ago)

Added by email2trac

Line 
1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
2<HTML>
3<HEAD>
4<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
5<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7036.0">
6<TITLE>RE: [mpich2-maint] #636: MPICH2 and .NET issues</TITLE>
7</HEAD>
8<BODY>
9<!-- Converted from text/plain format -->
10
11<P><FONT SIZE=2>&nbsp;Hi,<BR>
12&nbsp; Can you try compiling your code with the multithreaded static runtime lib (/MT)? Also if you don't need the C++ MPI interfaces you can remove cxx.lib from the list of dependencies.<BR>
13<BR>
14Regards,<BR>
15Jayesh<BR>
16<BR>
17-----Original Message-----<BR>
18From: mpich2-bugs-bounces@mcs.anl.gov [<A HREF="mailto:mpich2-bugs-bounces@mcs.anl.gov">mailto:mpich2-bugs-bounces@mcs.anl.gov</A>] On Behalf Of mpich2<BR>
19Sent: Thursday, June 04, 2009 6:42 AM<BR>
20To: undisclosed-recipients:<BR>
21Subject: [mpich2-maint] #636: MPICH2 and .NET issues<BR>
22<BR>
23---------------------------------------------+--------------------------<BR>
24---------------------------------------------+----<BR>
25&nbsp;Reporter:&nbsp; &quot;T. Farago&quot; &lt;farago1@zonnet.nl&gt;&nbsp; |&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Type:&nbsp; bug&nbsp;&nbsp;<BR>
26&nbsp;&nbsp; Status:&nbsp; new&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp;&nbsp; Priority:&nbsp; major<BR>
27Milestone:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; |&nbsp;&nbsp; Component:&nbsp; mpich2<BR>
28---------------------------------------------+--------------------------<BR>
29---------------------------------------------+----<BR>
30<BR>
31<BR>
32&nbsp;{{{<BR>
33<BR>
34&nbsp;My project is built with the &quot;multi-threaded DLL&quot; runtime library&nbsp; using MSVC 2008.<BR>
35<BR>
36&nbsp;For MPI I include &lt;mpi.h&gt; and its two library files cxx.lib and&nbsp; mpi.lib. Simply compiling and linking the project results in the&nbsp; following error(s):<BR>
37<BR>
38&nbsp;Linking...<BR>
39&nbsp;LIBCMT.lib(hooks.obj) : error LNK2005: &quot;void __cdecl terminate(void)&quot;<BR>
40&nbsp;(?terminate@@YAXXZ) already defined in MSVCRT.lib(MSVCR90.dll)<BR>
41&nbsp;LIBCMT.lib(stdexcpt.obj) : error LNK2005: &quot;public: __thiscall&nbsp; std::exception::exception(class std::exception const &amp;)&quot;<BR>
42&nbsp;(??0exception@std@@QAE@ABV01@@Z) already defined in<BR>
43&nbsp;MSVCRT.lib(MSVCR90.dll)<BR>
44&nbsp;LIBCMT.lib(stdexcpt.obj) : error LNK2005: &quot;public: virtual char const<BR>
45&nbsp;* __thiscall std::exception::what(void)const &quot;<BR>
46&nbsp;(?what@exception@std@@UBEPBDXZ) already defined in<BR>
47&nbsp;MSVCRT.lib(MSVCR90.dll)<BR>
48&nbsp;LIBCMT.lib(typinfo.obj) : error LNK2005: &quot;public: void __thiscall&nbsp; type_info::_type_info_dtor_internal_method(void)&quot;<BR>
49&nbsp;(?_type_info_dtor_internal_method@type_info@@QAEXXZ) already defined&nbsp; in MSVCRT.lib(MSVCR90.dll)<BR>
50&nbsp;LIBCMT.lib(typinfo.obj) : error LNK2005: &quot;private: __thiscall&nbsp; type_info::type_info(class type_info const &amp;)&quot;<BR>
51&nbsp;(??0type_info@@AAE@ABV0@@Z) already defined in MSVCRT.lib(ti_inst.obj)<BR>
52&nbsp;LIBCMT.lib(typinfo.obj) : error LNK2005: &quot;private: class type_info &amp;&nbsp; __thiscall type_info::operator=(class type_info const &amp;)&quot;<BR>
53&nbsp;(??4type_info@@AAEAAV0@ABV0@@Z) already defined in<BR>
54&nbsp;MSVCRT.lib(ti_inst.obj)<BR>
55&nbsp;LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of&nbsp; other libs; use /NODEFAULTLIB:library&nbsp; I:\trunk\bin\Release\graph.exe : fatal error LNK1169: one or more&nbsp; multiply defined symbols found<BR>
56<BR>
57<BR>
58&nbsp;So I ignore &quot;libcmt.lib&quot; and get the following warning(s):<BR>
59<BR>
60&nbsp;graph.obj : warning LNK4248: unresolved typeref token (01000066) for&nbsp; 'ADIOI_FileD'; image may not run<BR>
61&nbsp;cxx.lib(initcxx1.obj) : warning LNK4099: PDB 'vc80.pdb' was not found&nbsp; with 'C:\MPICH2\lib\cxx.lib' or at 'i:\trunk\bin\Release\vc80.pdb';&nbsp; linking object as if no debug info<BR>
62<BR>
63&nbsp;The program crashes at startup during initialisation saying something&nbsp; about &quot;unhandled exception of type System.TypeInitializationException<BR>
64&nbsp;in Unknown Module&quot;<BR>
65<BR>
66&nbsp;How can this be solved?<BR>
67&nbsp;Best regards,<BR>
68&nbsp;T. Farago<BR>
69&nbsp;}}}<BR>
70<BR>
71<BR>
72--<BR>
73Ticket URL: &lt;<A HREF="https://trac.mcs.anl.gov/projects/mpich2/ticket/636">https://trac.mcs.anl.gov/projects/mpich2/ticket/636</A>&gt;<BR>
74</FONT>
75</P>
76
77</BODY>
78</HTML>