LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Alastuey, Lucas (Lucas.Alastuey_at_[hidden])
Date: 2005-10-04 08:20:18


after many electricStormBrainShock.... the solution was :
add this line to .bashrc

"LD_LIBRARY_PATH=/home/lucas/lib/:/lib/:/usr/lib/"
 
and compile with

"mpiCC comunicador.cpp test_comm.cpp -o ejec"

thank for u support.

-----Mensaje original-----
De: lam-bounces_at_[hidden] [mailto:lam-bounces_at_[hidden]]En nombre de
Jeff Squyres
Enviado el: viernes, 30 de septiembre de 2005 17:09
Para: General LAM/MPI mailing list
Asunto: Re: LAM: compiling problem

On Sep 30, 2005, at 4:45 PM, Alastuey, Lucas wrote:

> mpiCC  test_comm.cpp -o ejec
>
> En el fichero incluÃdo de
> /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/
> backward/iostream.h:31,
>                  de test_comm.cpp:2:
> /usr/lib/gcc/i386-redhat-linux/3.4.3/../../../../include/c++/3.4.3/
> backward/backward_warning.h:32:2: aviso: #warning This file includes
> at least one deprecated or antiquated header. Please consider using
> one of the 32 headers found in section 17.4.1.2 of the C++ standard.
> Examples include substituting the <X> header for the <X.h> header for
> C++ includes, or <iostream> instead of the deprecated header
> <iostream.h>. To disable this warning use -Wno-deprecated.

This is a warning that you should be using <iostream>, not <iostream.h>
(this is unrelated to MPI).

> /tmp/ccDKLngT.o(.text+0x128): En la función `main':
> : undefined reference to `comunicador::comunicador()'

This does not look like a problem with MPI; it looks like you are not
compiling / linking all of your code properly. Your e-mail says that
you have test_comm.cpp, communicador.c, and communicador.h, but I don't
see communicador.c -- where these symbols are defined -- referenced in
your compile/link command ("mpiCC  test_comm.cpp -o ejec").

I think you need to compile and link in communicador.c (there are
several different ways that you can do this). See a local programming
guru and/or system administrator for help about this.

Hope this helps.

-- 
{+} Jeff Squyres
{+} The Open MPI Project
{+} http://www.open-mpi.org/
_______________________________________________
This list is archived at http://www.lam-mpi.org/MailArchives/lam/