1.问题描述
/usr/local/include/glog/logging.h:1566:35: error: ‘LogSeverity’ was not declared in this scope; did you mean ‘google::LogSeverity’?
1566 | rLogging(LogSeverity min_severity);
2.方案:
方法1:卸载:sudo make uninstall
方法2:删除掉include:sudo rm -r /usr/local/include/glog
,然后重新装glog:sudo apt install libgoogle-glog-dev
方法2成功,因为新装的glog覆盖了旧的glog,导致库的使用发生问题。