You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
当我编译项目的时候,总是出现一些未定义的情况,编译错误信息如下:
/usr/bin/ld: CMakeFiles/test_nn.dir/test_nn.cc.o: in function CH5_TEST_OCTREE_BASICS_Test::TestBody()': /home/rookie-lu/Project/slam_in_autonomous_driving/src/ch5/test_nn.cc:296: undefined reference to sad::OctoTree::BuildTree(boost::shared_ptr<pcl::PointCloudpcl::PointXYZI > const&)'
我发现,但凡涉及到链接${PROJECT_NAME}.ch5的部分,总会出现上述报错的情况,当我将${PROJECT_NAME}.ch5中的cpp文件直接放在链接${PROJECT_NAME}.ch5的target里边时,报错消失,我猜测,链接了${PROJECT_NAME}.ch5确报未定义错误的问题有可能是我cmake版本的问题,我的cmake版本是3.16.3,请问编译通过的同学们,你们cmake版本是什么呢?
The text was updated successfully, but these errors were encountered:
当我编译项目的时候,总是出现一些未定义的情况,编译错误信息如下:
/usr/bin/ld: CMakeFiles/test_nn.dir/test_nn.cc.o: in function
CH5_TEST_OCTREE_BASICS_Test::TestBody()': /home/rookie-lu/Project/slam_in_autonomous_driving/src/ch5/test_nn.cc:296: undefined reference to
sad::OctoTree::BuildTree(boost::shared_ptr<pcl::PointCloudpcl::PointXYZI > const&)'我发现,但凡涉及到链接${PROJECT_NAME}.ch5的部分,总会出现上述报错的情况,当我将${PROJECT_NAME}.ch5中的cpp文件直接放在链接${PROJECT_NAME}.ch5的target里边时,报错消失,我猜测,链接了${PROJECT_NAME}.ch5确报未定义错误的问题有可能是我cmake版本的问题,我的cmake版本是3.16.3,请问编译通过的同学们,你们cmake版本是什么呢?
The text was updated successfully, but these errors were encountered: