ldd--cppad--static_assert--gflags

1问题解决

 ‘google’ has not been declared
 bool isSmoothingMethodValid = google::RegisterFlagValidator(
                               ^
/home/ubuntu/Code_Study/path_optimizer_test-master/src/config/planning_flags.cpp:115:34: error: ‘google’ has not been declared
 bool isOptimizationMethodValid = google::RegisterFlagValidator;

这个错误提示表明编译器在你的代码中找不到google这个命名空间或对象。错误是在尝试使用google::RegisterFlagValidator时发生的。

这个函数是gflags库中的一个函数,它是用来注册命令行标志的验证器的。要解决这个问题,你需要确保:

  1. 你确实包含了gflags库。通常,你需要在你的代码中包含对应的头文件,例如:
#include 
  1. <

你可能感兴趣的:(chrome,前端)