Re: [OMPI users] vs2010: MPI_Address() unresolved

2011-11-18 Thread Shiqing Fan
Does this happen also for other MPI_* functions? Probably you need to add OMPI_IMPORTS as an extra preprocessor. Regards, Shiqing On 2011-11-19 1:02 AM, MM wrote: Hi, I get this style of errors when trying to link against libmpid.lib (compiled with instructions from README.Windows part 1

Re: [OMPI users] mpic++-wrapper-data.txt msvc10 Release/Debug 1.5.4

2011-11-18 Thread Shiqing Fan
Hi, There is no easy solution. But you can try to use WANT_EXE_DEBUG_POSTFIX option in CMake GUI. Enabling this option will generate different executable.library names for debug and release build. For example, mpic++d.exe for debug and mpic++.exe for release. For you case, just build both de

[OMPI users] vs2010: MPI_Address() unresolved

2011-11-18 Thread MM
Hi, I get this style of errors when trying to link against libmpid.lib (compiled with instructions from README.Windows part 1 cmake): mylib.lib(myfile.obj): : error LNK2001: unresolved external symbol __imp__MPI_Address I set BUILD_SHARED_LIBS to false, so I generate static libs. I've also c

[OMPI users] mpic++-wrapper-data.txt msvc10 Release/Debug 1.5.4

2011-11-18 Thread MM
Hello, Compiling boost mpi library uses mpic++ to get the compile flags to pass to cl.exe and link libs to pass to the linker. In my case: >>> mpic++ -showme:compile /I"C:\Program Files\openmpi\bin/../include" /TP /EHsc /MD >>> mpic++ -showme:link /link /LIBPATH:"C:\Program Files\openmpi\bi

Re: [OMPI users] Memory corruption due to MPI_Status_c2f

2011-11-18 Thread François Trahay
Oops... I misread the documentation. It is stated that for fortran, "The status argument must be declared as an array of size MPI_STATUS_SIZE, as in integer status(MPI_STATUS_SIZE)" Since I declared the fortran status with "MPI_Fint f_status;", their isn't enough room for storing the status. F

[OMPI users] Memory corruption due to MPI_Status_c2f

2011-11-18 Thread François Trahay
Hi, I have a C+Fortran program that seems to crash due to OpenMPI implementation of MPI_Status_c2f. When my program calls this function, a memory corruption happens. Here's a test program that reproduce the bug. It allocates and fills a buffer, call MPI_Status_c2f (using a valid status) and prin