/PL-SLAM/src/LoopClosing.cc:416:20: error: use of an operand of type ‘bool’ in ‘operator++’ is forbidden in C++1z mnFullBAIdx++; solve by following: // mnFullBAIdx++; if (mnFullBAIdx==0) { mnFullBAIdx=1; }