LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: William Boatin (wboatin_at_[hidden])
Date: 2003-07-03 14:21:49


This is a continuation of the following thread:

http://www.lam-mpi.org/MailArchives/lam/msg06206.php

You (Jeff 'you Da MAN!' Squyres) mentioned several useful things
for one, 'mpicc -showme' shows the libraries linked too when compiling mpi
apps:

gcc -llammpio -lpmpi -llamf77mpi -lmpi -llam -lutil

HOWEVER, when i try and run gcc as similarly to what is shown above:

gcc -lpmpi -llamf77mpi -lmpi -llam -lutil -o n mpicode.c

shown above, i get errors like :

/tmp/ccPQeQ3l.o(.text+0x19): undefined reference to `MPI_Init'

and more like that. running 'mpicc -o n mpicode.c' works just fine.
what gives?

btw, the command to extract, list or add object files (.o files) files to
library files (.a files) is 'ar'. and i am still using lam 6.5.9.

_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail