I am trying to compile openfoam 3.0.0 on centos 6.5 using intel compiler 15.0.3 and i am getting error:
mpiicpc -std=c++0x -fp-trap=common -fp-model precise -DMPI_NO_CPPBIND -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -diag-disable 2304 -xHost -O2 -DNoRepository -I/include -I/root/Downloads//OpenFoam//ThirdParty-3.0.0/platforms/linux64IccInt32/scotch_6.0.3/include/openmpi-system -I/usr/include/scotch -I../decompositionMethods/lnInclude -IlnInclude -I. -I/root/Downloads//OpenFoam//OpenFOAM-3.0.0/src/OpenFOAM/lnInclude -I/root/Downloads//OpenFoam//OpenFOAM-3.0.0/src/OSspecific/POSIX/lnInclude -fPIC -c ptscotchDecomp.C -o Make/linux64GccDPInt32OptIMPI/ptscotchDecomp.o In file included from /opt/intel//impi/5.0.3.048/intel64/include/mpi.h(2275), from ptscotchDecomp.C(125): /opt/intel//impi/5.0.3.048/intel64/include/mpicxx.h(2806): error: more than one instance of overloaded function "MPI::Init" has "C" linkage extern void Init(int &, char **& ); ^ In file included from /opt/intel//impi/5.0.3.048/intel64/include/mpi.h(2275), from ptscotchDecomp.C(125): /opt/intel//impi/5.0.3.048/intel64/include/mpicxx.h(2808): error: more than one instance of overloaded function "MPI::Init_thread" has "C" linkage extern int Init_thread(int &, char **&, int ); ^ compilation aborted for ptscotchDecomp.C (code 2) make: *** [Make/linux64GccDPInt32OptIMPI/ptscotchDecomp.o] Error 2
since the error is related to intel's mpicxx.h ao i am posting this here.
please take a look on the full compilation procedure here:
Eagerly awaiting your replies,