problems compiling NAMD with mpicxx from mvapich2

From: Jose Borreguero (
Date: Sat Jan 24 2015 - 11:49:02 CST

Dear NAMD gurus,

This is my problem when compiling NAMD on a Linux cluster:

module load mvapich2-x86_64
cd charm-6.4.0/
env MPICXX=mpicxx ./build charm++ mpi-linux-amd64 --with-production

checking "C++ compiler as"... "mpicxx -m64 -fPIC -DCMK_GFORTRAN
-optimize -production "
checking "whether C++ compiler works"... "ok"
checking "C++ linker as"... "mpicxx -m64 -fPIC -DCMK_GFORTRAN "
checking "whether linker works"... "no"

*Cannot link C++ programs with mpicxx -m64 -fPIC -DCMK_GFORTRAN *
The final lines of charm-6.4.0/mpi-linux-amd64/tmp/charmconfig.out:

### whether linker works
#include <stdio.h>
int main() {
    printf("Hello, world!\n");
    return 0;
mpicxx -m64 -fPIC -DCMK_GFORTRAN -I../include -I. -c test.cpp -o test.o
mpicxx -m64 -fPIC -DCMK_GFORTRAN -o testlink test.o
*/usr/bin/ld: cannot find -lmpichcxx*
collect2: ld returned 1 exit status

It would seem a problem of not finding the mpichcxx libraries, however:
$> ls /usr/lib64/mvapich2/lib/libmpichcxx*

Please, any help is much appreciated.

This archive was generated by hypermail 2.1.6 : Tue Dec 27 2016 - 23:20:50 CST