On 3 Aug 2010, at 20:58, Jack Bryan wrote:

I used mpicc to compile it. 

I used ./bjam to compile and ./bjam install boost.

Any help is appreciated. 

Jack 

From: troyer@phys.ethz.ch
Date: Tue, 3 Aug 2010 20:27:12 -0600
To: boost-users@lists.boost.org
Subject: Re: [Boost-users] boost MPI install error

On 3 Aug 2010, at 17:45, Jack Bryan wrote:

thanks for reply. 

My test program works well. 

#include <stdio.h>
#include "mpi.h"

int main(int argc, char* argv[])
{
  int rank, size;
  MPI_Init(0,0);
  MPI_Comm_size(MPI_COMM_WORLD, &size);
  MPI_Comm_rank(MPI_COMM_WORLD, &rank);
  printf("I am process %d out of total process \n\n ", rank, size );
  MPI_Finalize();
  return 0;
}

What may be the reason for the boost MPI install failure ? 


How do you compile this? And do you use the same compiler when building Boost?

It seems that you use a different wrapper compiler when building MPI. Did you look at http://www.boost.org/doc/libs/1_43_0/doc/html/mpi/getting_started.html#mpi.config and specify the *same* mpiCC that you use to compile your test programs?

Matthias