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