Your error output implies that you are using MPICH-g2, not LAM/MPI.
You probably need to send e-mail to the MPICH-g2 mailing list to get
help; LAM/MPI is an entirely different software project. Sorry...
On Jun 18, 2007, at 5:58 AM, Anna Mereu wrote:
> Hi, i'm trying to compile a c++ program with mpiCC and i'm facing the
> following errors:
>
> confronto_cpp.o: In function `PMPI::Request::Test()':
> /usr/local/mpich-g2/include/mpi2c++/request_inln.h:71: undefined
> reference to `PMPI::Request::ignored_status'
> confronto_cpp.o: In function `PMPI::Request::Wait()':
> /usr/local/mpich-g2/include/mpi2c++/request_inln.h:46: undefined
> reference to `PMPI::Request::ignored_status'
> confronto_cpp.o: In function `Cartcomm':
> /usr/local/mpich-g2/include/mpi2c++/topology_inln.h:37: undefined
> reference to `MPI::Is_initialized()'
> confronto_cpp.o: In function `Graphcomm':
> /usr/local/mpich-g2/include/mpi2c++/topology_inln.h:166: undefined
> reference to `MPI::Is_initialized()'
> confronto_cpp.o: In function `Intracomm':
> /usr/local/mpich-g2/include/mpi2c++/intracomm_inln.h:33: undefined
> reference to `MPI::Is_initialized()'
> confronto_cpp.o: In function `PMPI::Intracomm::Scan(void const*,
> void*,
> int, PMPI::Datatype const&, PMPI::Op const&) const':
> /usr/local/mpich-g2/include/mpi2c++/intracomm_inln.h:185: undefined
> reference to `PMPI::Intracomm::current_op'
> /usr/local/mpich-g2/include/mpi2c++/intracomm_inln.h:187: undefined
> reference to `PMPI::Intracomm::current_op'
> confronto_cpp.o: In function `PMPI::Intracomm::Reduce_scatter(void
> const*, void*, int*, PMPI::Datatype const&, PMPI::Op const&) const':
> /usr/local/mpich-g2/include/mpi2c++/intracomm_inln.h:175: undefined
> reference to `PMPI::Intracomm::current_op'
> /usr/local/mpich-g2/include/mpi2c++/intracomm_inln.h:178: undefined
> reference to `PMPI::Intracomm::current_op'
> confronto_cpp.o: In function `PMPI::Intracomm::Allreduce(void const*,
> void*, int, PMPI::Datatype const&, PMPI::Op const&) const':
> /usr/local/mpich-g2/include/mpi2c++/intracomm_inln.h:164: undefined
> reference to `PMPI::Intracomm::current_op'
> confronto_cpp.o:/usr/local/mpich-g2/include/mpi2c++/
> intracomm_inln.h:166:
> more undefined references to `PMPI::Intracomm::current_op' follow
> confronto_cpp.o: In function `PMPI::Comm::Set_attr(int, void
> const*) const':
> /usr/local/mpich-g2/include/mpi2c++/comm_inln.h:442: undefined
> reference
> to `PMPI::Comm::mpi_comm_map'
> /usr/local/mpich-g2/include/mpi2c++/comm_inln.h:444: undefined
> reference
> to `PMPI::Comm::mpi_comm_map'
> confronto_cpp.o: In function
> `PMPI::Comm::Set_errhandler(PMPI::Errhandler const&)':
> /usr/local/mpich-g2/include/mpi2c++/comm_inln.h:374: undefined
> reference
> to `PMPI::Comm::mpi_err_map'
> confronto_cpp.o: In function `PMPI::Comm::Free()':
> /usr/local/mpich-g2/include/mpi2c++/comm_inln.h:329: undefined
> reference
> to `PMPI::Comm::mpi_comm_map'
> /usr/local/mpich-g2/include/mpi2c++/comm_inln.h:330: undefined
> reference
> to `PMPI::Comm::mpi_comm_map'
> /usr/local/mpich-g2/include/mpi2c++/comm_inln.h:331: undefined
> reference
> to `PMPI::Comm::mpi_comm_map'
> confronto_cpp.o: In function `PMPI::Comm::Sendrecv_replace(void*, int,
> PMPI::Datatype const&, int, int, int, int) const':
> /usr/local/mpich-g2/include/mpi2c++/comm_inln.h:282: undefined
> reference
> to `PMPI::Comm::ignored_status'
> confronto_cpp.o: In function `PMPI::Comm::Sendrecv(void const*, int,
> PMPI::Datatype const&, int, int, void*, int, PMPI::Datatype const&,
> int,
> int) const':
> /usr/local/mpich-g2/include/mpi2c++/comm_inln.h:254: undefined
> reference
> to `PMPI::Comm::ignored_status'
> confronto_cpp.o: In function `PMPI::Comm::Probe(int, int) const':
> /usr/local/mpich-g2/include/mpi2c++/comm_inln.h:168: undefined
> reference
> to `PMPI::Comm::ignored_status'
> confronto_cpp.o: In function `PMPI::Comm::Iprobe(int, int) const':
> /usr/local/mpich-g2/include/mpi2c++/comm_inln.h:151: undefined
> reference
> to `PMPI::Comm::ignored_status'
> confronto_cpp.o: In function `PMPI::Comm::Recv(void*, int,
> PMPI::Datatype const&, int, int) const':
> /usr/local/mpich-g2/include/mpi2c++/comm_inln.h:57: undefined
> reference
> to `PMPI::Comm::ignored_status'
> confronto_cpp.o: In function `PMPI::Op::Init(void (*)(void const*,
> void*, int, PMPI::Datatype const&), bool)':
> /usr/local/mpich-g2/include/mpi2c++/op_inln.h:122: undefined reference
> to `op_intercept'
> confronto_cpp.o:(.rodata._ZTVN3MPI2OpE[vtable for MPI::Op]+0x10):
> undefined reference to `MPI::Op::Init(void (*)(void const*, void*,
> int,
> MPI::Datatype const&), bool)'
> confronto_cpp.o:(.rodata._ZTVN3MPI2OpE[vtable for MPI::Op]+0x14):
> undefined reference to `MPI::Op::Free()'
> collect2: ld returned 1 exit status
> make: *** [confronto_cpp] Error 1
>
> Can anybody help me?
>
> Thank you in advance
>
> Anna
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
--
Jeff Squyres
Cisco Systems
|