Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Open MPI User's mailing list

From: Adrian Knoth (adi_at_[hidden])
Date: 2007-05-03 08:14:47

On Thu, May 03, 2007 at 01:57:27PM +0200, Chaloupka Zden?k wrote:

> Hello,


> MPI_Init(&argv, &argc);
> [chaloz_at_chaloupka src]$ mpicc
> /tmp/ccBJb7ZI.o: In function
> `__static_initialization_and_destruction_0(int,
> int)' undefined reference to
> `std::ios_base::Init::Init()'

You have C code, but your filename tells the compiler it is C++.

Rename to main.c, this should fix your problem.

(or use mpic++ instead of mpicc)


Cluster and Metacomputing Working Group
Friedrich-Schiller-Universität Jena, Germany