运行ceres-solver中 powell.cpp 出现error: ‘CERES_GFLAGS_NAMESPACE’ has not been declared CERES_GFLAGS_N
查看ParseCommandLineFlags发现来源于gflags:所以只要将CERES_GFLAGS_NAMEPACE::ParseCommandLineFlags(&argc,&argv,true);改成:gflags::ParseCommandLineFlags(&argc,&argv,true);不用改变相对应的CMakeLists.txt.cmake_minimum_required(