Re: mpich 1.2.5-2 in testing vs. mpich 1.2.4-5
> compiling with gcc-3.2 test_program.c -lmpi, I get a bunch of undefined
> references:
>
> as@puppy:jas$ gcc-3.2 mpi_test.cc -lmpi
> /usr/lib/gcc-lib/i386-linux/3.2.3/../../../libmpi.so: undefined
> reference to `PMPI_Comm_rank'
> /usr/lib/gcc-lib/i386-linux/3.2.3/../../../libmpi.so: undefined
> reference to `PMPI_Waitall'
> /usr/lib/gcc-lib/i386-linux/3.2.3/../../../libmpi.so: undefined
> reference to `PMPI_Initialized'
> <snip>
>
> I can resolve these, by using:
> gcc-3.2 mpi_test.cc -L/usr/lib/mpich/lib/shared -lmpi -lpmpich
>
> Now using mpich 1.2.4-5, did not require that I link in -lpmpich when
> using -lmpi, that is,
>
> gcc-3.2 mpi_test.cc -lmpi worked just fine.
>
>
> Is there anyway of doing a check for the mpi library without having to
> specify the -lpmpich? Is this a change in mpich itself going from 1.2.4
> to 1.2.5, or is it Debian specific? I looked through the documents in
> /usr/share/doc/mpich and didn't see anything related to my problems.
What you are saying basically is that the version of mpich in testing
is slightly buggy.
mpich shared library creation has been a problem.
However, the normal way of using mpich shared library is
to use mpiCC command with the appropriate command-line options.
regards,
junichi
Reply to: