List Info

Thread: LAM: i got errors at compilation time




LAM: i got errors at compilation time
user name
2006-11-15 13:29:40
Hi,

It looks like you are not linking in the mpi library. You
should compile your 
program with mpif77 instead of calling ifort directly. This
will 
automatically add any necessary compile flags. See:
h
ttp://www.lam-mpi.org/faq/category5.php3#question1

Thanks,

Tim Prins


On Wednesday 15 November 2006 08:04, ankit ashwinbhai patel
wrote:
> In lam-mpi installation, for fortran i used intel
fortran compiler and for
> c i used gcc and for c++ default one.But when i want to
compile my program
> that i got following error . para.f and s*.f all files
are manually coded
> for specific program. $ ifort -I /usr/local/include
para.f s*.f
> /usr/local/lib/liblam.a -o
a.out/tmp/ifortNq7EA2.o(.text+0x3e): In function
> `MAIN__':: undefined reference to
> `mpi_init_'/tmp/ifortNq7EA2.o(.text+0x54): In function
`MAIN__'::
> undefined reference to
`mpi_comm_rank_'/tmp/ifortNq7EA2.o(.text+0x6a): In
> function `MAIN__':: undefined reference to
> `mpi_comm_size_'/tmp/ifortNq7EA2.o(.text+0xd1): In
function `MAIN__'::
> undefined reference to
`mpi_bcast_'/tmp/ifortNq7EA2.o(.text+0x507): In
> function `MAIN__':: undefined reference to
> `mpi_finalize_'/tmp/ifortNq7EA2.o(.text+0x59b): In
function `fiten_'::
> undefined reference to
`mpi_comm_rank_'/tmp/ifortNq7EA2.o(.text+0x5b7): In
> function `fiten_':: undefined reference to
`mpi_comm_size_'/tmp!
> /ifortNq7EA2.o(.text+0x5fa): In function `fiten_'::
undefined reference to
> `mpi_bcast_'/tmp/ifortNq7EA2.o(.text+0x7b0): In
function `fiten_'::
> undefined reference to
`mpi_bcast_'/tmp/ifortNq7EA2.o(.text+0xea6): In
> function `fiten_':: undefined reference to
> `mpi_bcast_'/tmp/ifortNq7EA2.o(.text+0x1732): In
function `fiten_'::
> undefined reference to
`mpi_bcast_'/tmp/ifortNq7EA2.o(.text+0x1f68): In
> function `fiten_':: undefined reference to
> `mpi_bcast_'/tmp/ifortNq7EA2.o(.text+0x2edd): In
function `functx_'::
> undefined reference to
`mpi_comm_rank_'/tmp/ifortNq7EA2.o(.text+0x2ef6):
> In function `functx_':: undefined reference to
> `mpi_comm_size_'/tmp/ifortNq7EA2.o(.text+0x31ab): In
function `functx_'::
> undefined reference to
`mpi_bcast_'/tmp/ifortNq7EA2.o(.text+0x31d7): In
> function `functx_':: undefined reference to
> `mpi_bcast_'/tmp/ifortNq7EA2.o(.text+0x3203): In
function `functx_'::
> undefined reference to
`mpi_bcast_'/tmp/ifortNq7EA2.o(.text+0x322f): In
> funct! ion `functx_':: undefined reference to
> `mpi_bcast_'/tmp/ifortNq7EA2.
>
> o(.text+0x325b): In function `functx_':: undefined
reference to
> `mpi_bcast_'/tmp/ifortNq7EA2.o(.text+0x4706): In
function `functx_'::
> undefined reference to
`mpi_send_'/tmp/ifortNq7EA2.o(.text+0x4750): In
> function `functx_':: undefined reference to
> `mpi_send_'/tmp/ifortNq7EA2.o(.text+0x47aa): In
function `functx_'::
> undefined reference to
`mpi_send_'/tmp/ifortNq7EA2.o(.text+0x489a): In
> function `functx_':: undefined reference to
> `mpi_recv_'/tmp/ifortNq7EA2.o(.text+0x48f1): In
function `functx_'::
> undefined reference to
`mpi_recv_'/tmp/ifortNq7EA2.o(.text+0x493d): In
> function `functx_':: undefined reference to
> `mpi_recv_'/tmp/ifortNq7EA2.o(.text+0x4a15): In
function `functx_'::
> undefined reference to
`mpi_send_'/tmp/ifortNq7EA2.o(.text+0x4b77): In
> function `functx_':: undefined reference to
> `mpi_send_'/tmp/ifortNq7EA2.o(.text+0x4ff2): In
function `functx_'::
> undefined reference to
`mpi_recv_'/tmp/ifortNq7EA2.o(.text+0x5206): In
> function `functx_':: undefi! ned reference to
> `mpi_send_'/tmp/ifortNq7EA2.o(.text+0x5246): In
function `functx_'::
> undefined reference to
`mpi_send_'/tmp/ifortNq7EA2.o(.text+0x5286): In
> function `functx_':: undefined reference to
> `mpi_send_'/tmp/ifortNq7EA2.o(.text+0x53b3): In
function `functx_'::
> undefined reference to
`mpi_send_'/tmp/ifortNq7EA2.o(.text+0x7b9c): In
> function `functx_':: undefined reference to
> `mpi_recv_'/tmp/ifortNq7EA2.o(.text+0x7ff2): In
function `functx_'::
> undefined reference to
`mpi_abort_'/tmp/ifortNq7EA2.o(.text+0x8be9): In
> function `functx_':: undefined reference to
> `mpi_bcast_'/tmp/ifortNq7EA2.o(.text+0x8c15): In
function `functx_'::
> undefined reference to
`mpi_bcast_'/tmp/ifortNq7EA2.o(.text+0x8c41): In
> function `functx_':: undefined reference to
> `mpi_bcast_'/tmp/ifortNq7EA2.o(.text+0x8cc7): In
function `functx_'::
> undefined reference to
`mpi_bcast_'/tmp/ifortNq7EA2.o(.text+0x910f): In
> function `functx_':: undefined reference to
`mpi_bcast_'Thanx in adva!
> nce
_______________________________________________
This list is archived at http://www.l
am-mpi.org/MailArchives/lam/
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )