[mpich-discuss] mpich2 1.5rc3 error: initcxx.cxx: undefined reference to 'MPI_Type_size'....

Dave Goodell goodell at mcs.anl.gov
Fri Oct 5 14:35:40 CDT 2012


Can you tell us the commands that you are using to build your application?  In particular, are you using "mpicxx" to both compile and link your application?

-Dave

On Oct 5, 2012, at 2:07 PM CDT, Charson Hu wrote:

> I just tried to recompile it using the new version mpich2 1.5rc3 but I got a lot
> of errors like
> ......
> libmpichcxx.a(initcxx.o): In function `MPI::Info::Free()`:
> initcxx.cxx:( .text._ZN3MPI4Info4FreeEv[MPI::Info::Free()]+0x9): undefined reference to `MPI_Info_free`
> .....
> initcxx.cxx( .text....): undefined reference to `MPI_Type_size`
> ....
> 
> The compiler I used are gcc, g++ and gfortran.
> I use the same makefile to compile the old mpich2 1.0.4, everything is ok.
>  
> please help check this issue
> _______________________________________________
> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss



More information about the mpich-discuss mailing list