LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: nanday_at_[hidden]
Date: 2006-07-27 20:33:42


I removed the -lmpi linking part from my Makefile and now all those errors are
gone, except that I get these errors now:
vhone.o(.text+0xb44): In function `MAIN__':
: undefined reference to `rtc_'
vhone.o(.text+0x1021): In function `MAIN__':
: undefined reference to `rtc_'
collect2: ld returned 1 exit status
make: *** [vhone] Error 1

Here's how my updated Makefile's link section looks like:
F77 = mpif77 # name of f77 compiler
FFLAGS = -c -I/opt/lam7.0.6/include #-I/opt/hdf/include # -02 optimization
LDR = mpif77 # name of linker
LDRFLAGS = #
LIBS = -I/opt/hdf/lib -lmfhdf -ldf -ljpeg -lz #

Any ideas??

Thanks
Nanda
> Hi
> I am new to MPI and i am tring to compile MPI version of VH-1 code. I modified
> the Makefile according to my system but I get errors probably related to MPI
> linkage problem. Here's one of such repeating errors.
>
>
/usr/lib/gcc/x86_64-redhat-linux/3.4.3/../../../../lib64/libmpi.a(lamtest.o)(.text+0x20e):

> In function `lam_test':
> : undefined reference to `_kio'
> collect2: ld returned 1 exit status
> make: *** [vhone] Error 1
>
> Here's how my Makefile's library info looks like:
>
> F77 = mpif77 # name of f77 compiler
> FFLAGS = -c -I/opt/lam7.0.6/include # -02 optimization
> LDR = mpif77 # name of linker
> LDRFLAGS = #
> LIBS = -lmpi -I/usr/lib -lmfhdf -ldf -ljpeg -lz #
>
> Can you please help me out here,
> thanks!!
>
> ---------------------------------------------
> This message was sent using Endymion MailMan.
> http://www.endymion.com/products/mailman/
>
>
> _______________________________________________
> This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>

---------------------------------------------
This message was sent using Endymion MailMan.
http://www.endymion.com/products/mailman/