MPI

Hello, Im rather new to this for'em.

Im trying to complie a FORTRAN program in 64bit mode and keep getting a message

ld: fatal: file /opt/SUNWhpc/HPC5.0/lib//libmpi.so: wrong ELF class: ELFCLASS32

l

or

ld: elf error: file /usr/local/mpich/lib/libmpichf90.a(mpi_constants.o): elf_getshdr: Request error: class file/memory mismatch

depending on what I add to the -L path option.

I assume the problem is to do with the application picking up a mixture of 32bit and 64bit binaries and trying to link them. Am I correct? Or is the problem somewhere else?

Thanlks for any help

[628 byte] By [Big_Dad] at [2007-11-26 8:04:42]
# 1
> the problem is to do with the application picking up a mixture of 32bit and 64bit binariesYep, you are right. You should be using 64bit libraries for your 64bit compilation only.regards,__Fedor.
SFV at 2007-7-6 20:40:15 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
this [url= http://forum.sun.com/jive/thread.jspa?threadID=97988]thread[/url] might be of interest to you...
SFV at 2007-7-6 20:40:15 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
Thanks for your post. The thread was useful too (I had already read it )but didnt spot further down that the wrapper was not appending the correct path for library search. I am currently pursuing that lineThanks again
Big_Dad at 2007-7-6 20:40:15 > top of Java-index,Development Tools,Solaris and Linux Development Tools...