Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

链接${PROJECT_NAME}.ch5无效 #162

Open
sunshanlu opened this issue Jun 5, 2024 · 0 comments
Open

链接${PROJECT_NAME}.ch5无效 #162

sunshanlu opened this issue Jun 5, 2024 · 0 comments

Comments

@sunshanlu
Copy link

当我编译项目的时候,总是出现一些未定义的情况,编译错误信息如下:
/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版本是什么呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant