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

undefined reference to `teaser::SolutionEvaluator::SolutionEvaluator(Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, double)' #174

Open
junxiaofanchen opened this issue Nov 17, 2023 · 4 comments

Comments

@junxiaofanchen
Copy link

/usr/bin/ld: CMakeFiles/all_tests.dir/evaluation-test.cc.o: in function EvaluationTest_Simple_Test::TestBody()': evaluation-test.cc:(.text+0x2d0): undefined reference to teaser::SolutionEvaluator::SolutionEvaluator(Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, double)'
/usr/bin/ld: evaluation-test.cc:(.text+0x371): undefined reference to `teaser::SolutionEvaluator::computeErrorMetric(Eigen::Matrix<double, 3, 3, 0, 3, 3> const&, Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)'
collect2: error: ld returned 1 exit status
make[2]: *** [test/teaser/CMakeFiles/all_tests.dir/build.make:297: test/teaser/all_tests] Error 1
make[1]: *** [CMakeFiles/Makefile2:582: test/teaser/CMakeFiles/all_tests.dir/all] Error 2
make: *** [Makefile:146: all] Error 2

I get this error when i use make -j16, do anyone know how to fix it?

@isqjsnao
Copy link

/usr/bin/ld: CMakeFiles/all_tests.dir/evaluation-test.cc.o: in function EvaluationTest_Simple_Test::TestBody()': evaluation-test.cc:(.text+0x2d0): undefined reference to teaser::SolutionEvaluator::SolutionEvaluator(Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, double)' /usr/bin/ld: evaluation-test.cc:(.text+0x371): undefined reference to `teaser::SolutionEvaluator::computeErrorMetric(Eigen::Matrix<double, 3, 3, 0, 3, 3> const&, Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)' collect2: error: ld returned 1 exit status make[2]: *** [test/teaser/CMakeFiles/all_tests.dir/build.make:297: test/teaser/all_tests] Error 1 make[1]: *** [CMakeFiles/Makefile2:582: test/teaser/CMakeFiles/all_tests.dir/all] Error 2 make: *** [Makefile:146: all] Error 2

I get this error when i use make -j16, do anyone know how to fix it?

请问您如何解决的 我也是这个问题

@LimHyungTae
Copy link
Member

If there are no further questions, we will close the issue. Thx!

@hr2894235132
Copy link

/usr/bin/ld: CMakeFiles/all_tests.dir/evaluation-test.cc.o: in function EvaluationTest_Simple_Test::TestBody()': evaluation-test.cc:(.text+0x2d0): undefined reference to teaser::SolutionEvaluator::SolutionEvaluator(Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, Eigen::Matrix<double, 3, -1, 0, 3, -1> const&, double)' /usr/bin/ld: evaluation-test.cc:(.text+0x371): undefined reference to `teaser::SolutionEvaluator::computeErrorMetric(Eigen::Matrix<double, 3, 3, 0, 3, 3> const&, Eigen::Matrix<double, 3, 1, 0, 3, 1> const&)' collect2: error: ld returned 1 exit status make[2]: *** [test/teaser/CMakeFiles/all_tests.dir/build.make:297: test/teaser/all_tests] Error 1 make[1]: *** [CMakeFiles/Makefile2:582: test/teaser/CMakeFiles/all_tests.dir/all] Error 2 make: *** [Makefile:146: all] Error 2

I get this error when i use make -j16, do anyone know how to fix it?

Have you solved it? I have the same problem:undefined reference to `testing::internal::PrintBytesInObjectTo(unsigned char const*, unsigned long, std::ostream*)'

@LimHyungTae
Copy link
Member

Could you elaborate on your problem more? I haven't experienced that kind of problem. How can we reproduce?

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

4 participants