[OMPI users] import/export issues on Windows

2010-04-15 Thread Ben.Kuppers
Hello, When I use 1.4.2rc1 I am able build in Visual Studio 2005 (CMake 2.6.4 default settings VS2005 x64)but I get the following warning (among others): 11>..\..\..\..\..\ompi\mpi\cxx\intercepts.cc(81) : warning C4273: 'MPI::InitializeIntercepts' : inconsistent dll linkage 11>

Re: [OMPI users] import/export issues on Windows

2010-04-16 Thread Ben.Kuppers
Shiqing, I believe changing OMPI_DECLSPEC to __declspec(dllexport) inside functions.h will allow the cxx module to build (and export the function) but will break any client using (and thus trying to import) it. OMPI_DECLSPEC should only be defined as __declspec(dllexport) while compiling the

Re: [OMPI users] import/export issues on Windows

2010-04-19 Thread Ben.Kuppers
Shiqing, I created new projects from scratch using CMake 2.6.4, selected the source dir and target dir and chose Visual Studio 8 2005 Win64. Pressed configure twice to accept all the default setting and then generate. When I open the Visual Studio project file for ompi_info

Re: [OMPI users] import/export issues on Windows

2010-04-19 Thread Ben.Kuppers
Shiqing, I am having more import/export issues once I start using the openmpi binaries that I built with the Microsoft compiler. I get unresolved symbol errors for MPI::Comm::Comm and for MPI::Datatype::Free when I link our own program. The C functions MPI_Comm_create and MPI_Type_free are

Re: [OMPI users] import/export issues on Windows

2010-04-21 Thread Ben.Kuppers
Thank you Shiqing. -Ben From: Shiqing Fan [mailto:f...@hlrs.de] Sent: Wednesday, April 21, 2010 11:30 AM To: Open MPI Users Cc: Kuppers, Ben SIEP-PTT/SDRM Subject: Re: [OMPI users] import/export issues on Windows Hi Ben, Sorry for response late. The preprocessor problem is solved now,