Re: [OMPI users] MPI compiling error

2007-05-03 Thread Adrian Knoth
On Thu, May 03, 2007 at 01:57:27PM +0200, Chaloupka Zden?k wrote: > Hello, Hi! > MPI_Init(&argv, &argc); > > [chaloz@chaloupka src]$ mpicc main.cc > /tmp/ccBJb7ZI.o: In function > `__static_initialization_and_destruction_0(int, > int)':main.cc:(.text+0x23): undefined reference to > `std::io

Re: [OMPI users] MPI compiling error

2007-05-03 Thread Bert Wesarg
Hello, Chaloupka Zdenìk wrote: > Hello, > I tried to compile following code: > > #include > #include "mpi.h" > int main(int argv, char *argc[]) > { > int rank; > > MPI_Init(&argv, &argc); > MPI_Comm_rank(MPI_COMM_WORLD, &rank); > if (rank == 0) printf("Starting program\n"); >