Open junxiaofanchen opened 10 months ago
/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 2I get this error when i use make -j16, do anyone know how to fix it?
请问您如何解决的 我也是这个问题
If there are no further questions, we will close the issue. Thx!
/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 2I 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)'
Could you elaborate on your problem more? I haven't experienced that kind of problem. How can we reproduce?
/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 2I get this error when i use make -j16, do anyone know how to fix it?