“Cannot compile C++ programs with mpicxx" error when compiling charm-6.7

From: sunyeping (sunyeping_at_aliyun.com)
Date: Sun Nov 20 2016 - 13:22:02 CST

Dear all,
I am trying to compile NAMD from source code wiht MPI version. When I give the command:
env MPICXX=mpicxx ./build charm++ mpi-linux-x86_64 --with-production
I got the following error:
checking "C++ compiler as"... "mpicxx   -DCMK_GFORTRAN    "
checking "whether C++ compiler works"... "no"
Cannot compile C++ programs with mpicxx   -DCMK_GFORTRAN  
 (check your charm++ version)
*** Please find detailed output in charmconfig.out ***
gmake[1]: *** [conv-autoconfig.h] Error 1
gmake[1]: Leaving directory `/app/build/NAMD_2.11_Source/charm-6.7.0/mpi-linux-x86_64/tmp'
gmake: *** [headers] Error 2
I have C++ comiler installed in my computer but why it seems not work? How should I correct it?
Best regards.
Yeping Sun

This archive was generated by hypermail 2.1.6 : Tue Dec 27 2016 - 23:22:37 CST