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,

Hi!

> MPI_Init(&argv, &argc);
>
> [chaloz_at_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::ios_base::Init::Init()'

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

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

(or use mpic++ instead of mpicc)

HTH

-- 
Cluster and Metacomputing Working Group
Friedrich-Schiller-Universität Jena, Germany
private: http://adi.thur.de