usr/bin/ld: CMakeFiles/testlnrr1.dir/scan_to_model.cpp.o: in function `lnrr::ScanToModel::computeOptimalRotationCeres(Eigen::Matrix<double, -1, -1, 0, -1, -1> const&, Eigen::Matrix<double, -1, -1, 0, -1, -1> const&)':
scan_to_model.cpp:(.text+0xd25): undefined reference to `ceres::Problem::Problem()'
/usr/bin/ld: scan_to_model.cpp:(.text+0xe73): undefined reference to `ceres::Problem::AddResidualBlock(ceres::CostFunction*, ceres::LossFunction*, std::vector<double*, std::allocator<double*> > const&)'
/usr/bin/ld: scan_to_model.cpp:(.text+0xee3): undefined reference to `ceres::Solve(ceres::Solver::Options const&, ceres::Problem*, ceres::Solver::Summary*)'
/usr/bin/ld: scan_to_model.cpp:(.text+0xf20): undefined reference to `ceres::Problem::~
编译ceres2.0.0+glog0.4.0+fgt+eigen3.4.0的问题
于 2022-07-14 11:07:53 首次发布
在编译ceres2.0.0和glog0.4.0时遇到外部符号解析错误。通过正确设置.lib文件的库目录和附加依赖项,并在预处理器定义中添加GOOGLE_GLOG_DLL_DECL=,问题得到解决。
订阅专栏 解锁全文
852

被折叠的 条评论
为什么被折叠?



