LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Heiko Bauke (Heiko.Bauke_at_[hidden])
Date: 2003-10-08 07:01:09


Dear all,

I have some problems with the C++ MPI datatype MPI::LONG_LONG. If I try
to compile

#include <mpi.h>
int main(void) {
  MPI::Datatype foo=MPI::UNSIGNED_LONG_LONG;
  MPI::Datatype bar=MPI::LONG_LONG;
}

The linker returns the error message

bauke_at_newton:~/tmp$ mpiCC -o foo foo.cc
/tmp/ccJ6oepC.o: In function `main':
/tmp/ccJ6oepC.o(.text+0x22): undefined reference to `MPI::LONG_LONG'
collect2: ld returned 1 exit status

This problem seams to be C++ specific. In C neither unsigned nor signed
long long data type cause trouble. The code

#include <mpi.h>
int main(void) {
  MPI_Datatype foo=MPI_UNSIGNED_LONG_LONG;
  MPI_Datatype bar=MPI_LONG_LONG_INT;
}

complies without errors.

I am using LAM 7.0.2 with gcc-3.0 and g++-3.0 under Debian 3.0.

        Cheers,

        Heiko

-- 
-- Eine gute Ehe beruht auf dem Talent zur Freundschaft. 
-- (Friedrich Nietzsche, 1844-1900, Menschliches I)
-- Supercomputing in Magdeburg @ http://tina.nat.uni-magdeburg.de
--                 Heiko Bauke @ http://www.uni-magdeburg.de/bauke