LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Adarsh patil (adarsh.patil_at_[hidden])
Date: 2004-11-09 19:44:55


Hi ,

if you follow this link you can find an example
http://www.cs.uiowa.edu/~oliveira/C296/compile-run.html

The previous problem of yours
Try to set the paths to the libraries and mpich directory
It might solve the problem.

Regards
Adarsh
----------------------------------------
http://www.adarshpatil.com

On Mon, 8 Nov 2004 15:42:57 -0800 (PST), Asha <s_asha_j_at_[hidden]> wrote:
>
> Thank You very much.
> I greatly appreciate it.
>
> Can anyone tell me how to run MPI batch files.
> Like I created the batch file to run the program but I am not able to run
> it.
>
> thanks
>
> Asha
>
>
> Mark Dickson <mark_at_[hidden]> wrote:
>
>
>
> It appears as though you have identified the directory that contains the
> MPICH libraries but not the specific MPICH libraries; try adding –lmpich.a.
>
>
>
> ________________________________
>
>
> From: lam-bounces_at_[hidden] [mailto:lam-bounces_at_[hidden]] On Behalf Of
> Asha
> Sent: Monday, November 08, 2004 12:02 PM
> To: lam_at_[hidden]
> Subject: LAM: MPI: how to debug this compilation error
>
>
>
>
> Hi all,
>
>
>
>
>
> I am getting this error on compiling and am not able to proceed furthur.
>
>
>
>
>
> [guest_at_IA-P3-001 msPGA]$ make
> g++ -I. -I/include -I/usr/local/mpich-1.2.5/include -O -DGA_TIMING
> -DCACHE_ALL=true -DLEFT_RIGHT -DONE_POINT_MUTATION -o msPGA msPGA.o my_std.o
> random.o -L/lib/ -L/usr/local/mpich-1.2.5/lib -lm
> msPGA.o: In function `main':
> msPGA.o(.text+0x1296): undefined reference to `MPI_Init'
> msPGA.o(.text+0x12a4): undefined reference to `MPI_Comm_rank'
> msPGA.o(.text+0x12b2): undefined reference to `MPI_Comm_size'
> msPGA.o(.text+0x1a4c): undefined reference to `MPI_Send'
> msPGA.o(.text+0x1aaf): undefined reference to `MPI_Recv'
> collect2: ld returned 1 exit status
> make: *** [msPGA] Error 1
>
>
>
>
>
> What does this mean and what should I do ?
>
>
> Can anyone help me in this regard.
>
>
>
>
>
> Thanks
>
>
>
>
>
> Asha
> ________________________________
>
>
> Do you Yahoo!?
> Check out the new Yahoo! Front Page.
> www.yahoo.com_______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
> ________________________________
> Do you Yahoo!?
> Check out the new Yahoo! Front Page. www.yahoo.com
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
>