Hello,
I am trying to build SCALE 6.2 and getting the following error during make. I was able to compile it a few weeks ago. MPI version: 4.0.0 and 4.0.2 both result in the same error:
[ 65%] Built target SmcLib_TstUniqSortList_Fission
[ 65%] Built target SmcLib_TstUtilityFunctions
[ 65%] Built target SmcLib_TstgetBoundsOfArray_Section
[ 65%] Built target SmcLib_TstgetSortedArray_IDs
[ 65%] Built target SmcLib_TstwriteDiff
Scanning dependencies of target SmcLib_kinematicsDataTesterCXX
[ 65%] Building CXX object packages/SmcLib/tests/CMakeFiles/SmcLib_kinematicsDataTesterCXX.dir/kinematicsDataTester.cpp.o
/usr/local/src/SCALE-6.2-serial-6.2-Source/packages/SmcLib/tests/kinematicsDataTester.cpp(139): error: name followed by "::" must be a class or namespace name
node = MPI::COMM_WORLD.Get_rank();
^
/usr/local/src/SCALE-6.2-serial-6.2-Source/packages/SmcLib/tests/kinematicsDataTester.cpp(274): error: name followed by "::" must be a class or namespace name
int node = MPI::COMM_WORLD.Get_rank();
^
/usr/local/src/SCALE-6.2-serial-6.2-Source/packages/SmcLib/tests/kinematicsDataTester.cpp(333): error: name followed by "::" must be a class or namespace name
MPI::Init();
^
/usr/local/src/SCALE-6.2-serial-6.2-Source/packages/SmcLib/tests/kinematicsDataTester.cpp(334): error: name followed by "::" must be a class or namespace name
node = MPI::COMM_WORLD.Get_rank();
^
/usr/local/src/SCALE-6.2-serial-6.2-Source/packages/SmcLib/tests/kinematicsDataTester.cpp(335): error: name followed by "::" must be a class or namespace name
nodes = MPI::COMM_WORLD.Get_size();
^
/usr/local/src/SCALE-6.2-serial-6.2-Source/packages/SmcLib/tests/kinematicsDataTester.cpp(424): error: name followed by "::" must be a class or namespace name
MPI::Finalize ( );
^
compilation aborted for /usr/local/src/SCALE-6.2-serial-6.2-Source/packages/SmcLib/tests/kinematicsDataTester.cpp (code 2)
make[2]: *** [packages/SmcLib/tests/CMakeFiles/SmcLib_kinematicsDataTesterCXX.dir/kinematicsDataTester.cpp.o] Error 2
make[1]: *** [packages/SmcLib/tests/CMakeFiles/SmcLib_kinematicsDataTesterCXX.dir/all] Error 2
make: *** [all] Error 2
Thanks for your help in this,
gokhan