-
Notifications
You must be signed in to change notification settings - Fork 8
Description
Hello,
I was trying to compile mgra on my system following the instruction. I passed the "cmake" step but got error in the "make" step. Please see the following error message for your reference. The version I used was directly obtained from github by git clone. Thanks in advance!
[yjx@octopus build]$ cmake ../src
-- The C compiler identification is GNU 4.4.7
-- The CXX compiler identification is GNU 4.4.7
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/yjx/Programs/mgra/build
[yjx@octopus build]$ make
Scanning dependencies of target mgra
[ 33%] Building CXX object CMakeFiles/mgra.dir/mgra.cpp.o
In file included from /home/yjx/Programs/mgra/src/include/defined.h:29,
from /home/yjx/Programs/mgra/src/include/reader.h:4,
from /home/yjx/Programs/mgra/src/mgra.cpp:18:
/home/yjx/Programs/mgra/src/include/utility/equivalence.h: In member function ‘void utility::equivalence<Item, Cmp>::update()’:
/home/yjx/Programs/mgra/src/include/utility/equivalence.h:59: error: expected initializer before ‘:’ token
/home/yjx/Programs/mgra/src/include/utility/equivalence.h:62: error: expected primary-expression before ‘}’ token
/home/yjx/Programs/mgra/src/include/utility/equivalence.h:62: error: expected ‘;’ before ‘}’ token
/home/yjx/Programs/mgra/src/include/utility/equivalence.h:62: error: expected primary-expression before ‘}’ token
/home/yjx/Programs/mgra/src/include/utility/equivalence.h:62: error: expected ‘)’ before ‘}’ token
/home/yjx/Programs/mgra/src/include/utility/equivalence.h:62: error: expected primary-expression before ‘}’ token
/home/yjx/Programs/mgra/src/include/utility/equivalence.h:62: error: expected ‘;’ before ‘}’ token
/home/yjx/Programs/mgra/src/include/utility/equivalence.h: In member function ‘size_t utility::equivalence<Item, Cmp>::classes()’:
/home/yjx/Programs/mgra/src/include/utility/equivalence.h:80: error: expected initializer before ‘:’ token
/home/yjx/Programs/mgra/src/mgra.cpp:151: error: expected primary-expression at end of input
/home/yjx/Programs/mgra/src/mgra.cpp:151: error: expected ‘;’ at end of input
/home/yjx/Programs/mgra/src/mgra.cpp:151: error: expected primary-expression at end of input
/home/yjx/Programs/mgra/src/mgra.cpp:151: error: expected ‘)’ at end of input
/home/yjx/Programs/mgra/src/mgra.cpp:151: error: expected statement at end of input
/home/yjx/Programs/mgra/src/mgra.cpp:151: error: expected ‘}’ at end of input
make[2]: *** [CMakeFiles/mgra.dir/mgra.cpp.o] Error 1
make[1]: *** [CMakeFiles/mgra.dir/all] Error 2
make: *** [all] Error 2