[mpich-discuss] Windows libraries

Michael Colonno mcolonno at stanford.edu
Mon Jun 18 16:14:56 CDT 2012


	Jayesh ~

	Appreciate the help. To answer your previous question, yes, everything was x64 from the get-go. In porting applications from Linux to Windows I've often run into these library issues (especially on the x64 platform). At the outset I thought it might be due to the specific libraries linked by MPICH2 when it was built on the Windows x64 platform but it seems this is just a more general Windows issue. I'm having a connection refused issue running the examples on the Windows side now, but I will start a separate thread for that as it is a distinct issue. 

	Thanks,
	~Mike C. 

-----Original Message-----
From: Jayesh Krishna [mailto:jayesh at mcs.anl.gov] 
Sent: Monday, June 18, 2012 12:01 PM
To: mpich-discuss at mcs.anl.gov
Cc: Michael Colonno
Subject: Re: [mpich-discuss] Windows libraries

Hi,
 Good to know the build worked for you. Let us know if you need any further help.

Regards,
Jayesh

=============================================================
        Hi Jayesh ~

        Firstly, thanks for the response to my question. After some hours of debugging over the weekend I managed to get the application to build (Windows example environments you mention below were very helpful). The key seemed to be judicious choices of which libraries to link and ignore via the
/NODEFAULTLIB: flag. I'm linking a total of three external libraries (MPICH2 is one of them) and had to build various libraries and pieces of my own code ignoring "LIBCMT" and "MSVCRT" in various places. In building other two libraries from source I have tried to be strictly consistent with my application in terms of compiler flags & settings (everything is "Release", x64, /MT, etc.) but I still needed to ignore various default libs in some and not in others. I wish there were a more systematic way to go about this on the Windows platform (and maybe there is and I simply don't know it).
        I'll be doing some test runs later today with MPICH2 on the Windows side; hopefully there won't be any run-time issues but I will let you know if I run into anything.

        Thanks,
        ~Mike C. 

----- Original Message -----
From: "Jayesh Krishna" <jayesh at mcs.anl.gov>
To: mpich-discuss at mcs.anl.gov
Sent: Monday, June 18, 2012 10:15:51 AM
Subject: Re: [mpich-discuss] Windows libraries

Hi,
 Look into the function GenBuild() in https://svn.mcs.anl.gov/repos/mpi/mpich2/trunk/winconfigure.wsf for information on the flags used for building MPICH2. The function creates a makefile during the MPICH2 configure step (for building MPICH2). A summary of the flags used is given below,

COMPILER FLAGS: -D_AMD64_=1 -DWIN64 -D_WIN64 -Wp64 -W4 -Oi -D_WINNT -D_WIN32_WINNT=$(NMAKE_WINVER) -DNDEBUG -D_MT -O2 (AND MPICH2 RELATED FLAGS AND INCLUDE PATHS)

LINKER FLAGS: -dll /OPT:REF /INCREMENTAL:NO /NOLOGO /MANIFEST /RELEASE (AND MPICH2 RELATED STUFF)

common libs used during linking: activeds.lib adsiid.lib netapi32.lib ntdsapi.lib secur32.lib mswsock.lib ws2_32.lib mpr.lib rpcrt4.lib crypt32.lib gdi32.lib kernel32.lib advapi32.lib comsupp.lib

Regards,
Jayesh

----- Original Message -----
From: "Michael Colonno" <mcolonno at stanford.edu>
To: mpich-discuss at mcs.anl.gov
Sent: Friday, June 15, 2012 11:25:13 AM
Subject: [mpich-discuss] Windows libraries





Hi Folks ~ 



I’m building a MPI Windows application with several external libraries using MPICH2-1.4.1p1 (Windows 7 x64). Regardless of my /NODEFAULTLIB: settings I’m getting link errors in one library or another. The only one of the external libraries I’m not building from source is MPICH2 and would prefer to use the distributed x64 binary if possible. Can anyone provide me with the exact library settings (debug vs. release, etc.) these were built with so I can match the other libraries and my application to them? I can build the MPICH2 binaries in Windows if it’s the only way to make everything compatible. 



Thanks, 

~Mike
_______________________________________________
mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
To manage subscription options or unsubscribe:
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
_______________________________________________
mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
To manage subscription options or unsubscribe:
https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss



More information about the mpich-discuss mailing list