-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Compilation Error undefined reference to `g2o::OptimizationAlgorithmG #857
Comments
This seems more like a linking issue. Are you linking the libraries needed here? |
Thanks so much for your response. Bellow you can find the cmake file I am using. I have successfully compiled OpenCV, Ceres and the other libraries but seem to be having this issue g2o. I've tried compiling both with c++14 and c++17. Both resulting in an error regarding the libraries. cmake_minimum_required(VERSION 3.5) set(CMAKE_CXX_STANDARD 14) message("Your C++ compiler supports these C++ features:") project(ch6) include_directories(${Sophus_INCLUDE_DIRS}) include_directories("C:/msys64/mingw64/include/eigen3" ) OpenCVfind_package(OpenCV REQUIRED) Ceres#find_package(blas REQUIRED) g2oSET( G2O_ROOT "C:/Program Files (x86)/g2o/include" ) add_executable(g2oCurveFitting_Win g2oCurveFitting_Win.cpp) |
When I change to C++14 I get the following error in the running the "cmake" command. I am using MinGW. The g2o library builds correctly and installs correctly. cmake -B build -G "MinGW Makefiles" -D "OpenCV_DIR=C:\opencv-4.10.0\opencv-4.10.0\Build" -D "Gmock_LIBRARIES=C:/Program Files (x86)/googletest-distribution/lib" -D "absl_DIR=C:\Program Files (x86)\absl\lib\cmake\absl" -D "Suitesparse_DIR=C:\suitesparse-metis-for-windows-7.5.1-1\build\install\lib\cmake\suitesparse-7.5.1" -D "Ceres_DIR=C:\Program Files (x86)\Ceres\lib\cmake\Ceres" -D "G2O_DIR=C:\Program Files (x86)\g2o\lib\cmake\g2o" CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required): Update the VERSION argument value. Or, use the ... syntax Your C++ compiler supports these C++ features: CMake variable G2O_ROOT is set to:
For compatibility, CMake is ignoring the variable. -- Found OpenGL: opengl32 -- Configuring incomplete, errors occurred! |
With all those |
Thanks so much! It worked with MinGW I was missing the linking of some libraries as suggested! |
Trying to compile some Visual Od Code.
The API is complaining about not finding the .h files. However I've link them.
C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text+0x227): undefined reference to
g2o::OptimizationAlgorithmGaussNewton::OptimizationAlgorithmGaussNewton(std::unique_ptr<g2o::Solver, std::default_delete<g2o::Solver> >)' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text+0x267): undefined reference to
g2o::SparseOptimizer::SparseOptimizer()'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text+0x27a): undefined reference to
g2o::SparseOptimizer::setAlgorithm(g2o::OptimizationAlgorithm*)' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text+0x28b): undefined reference to
g2o::SparseOptimizer::setVerbose(bool)'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text+0x3a1): undefined reference to
g2o::HyperGraph::Edge::setId(int)' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text+0x4a8): undefined reference to
g2o::OptimizableGraph::addEdge(g2o::OptimizableGraph::Edge*)'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text+0x506): undefined reference to
g2o::SparseOptimizer::initializeOptimization(int)' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text+0x51d): undefined reference to
g2o::SparseOptimizer::optimize(int, bool)'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text+0x636): undefined reference to
g2o::SparseOptimizer::~SparseOptimizer()' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text+0x6ef): undefined reference to
g2o::SparseOptimizer::~SparseOptimizer()'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o16OptimizableGraph9addVertexEPNS0_6VertexE[_ZN3g2o16OptimizableGraph9addVertexEPNS0_6VertexE]+0x22): undefined reference to
g2o::OptimizableGraph::addVertex(g2o::OptimizableGraph::Vertex*, g2o::HyperGraph::Data*)' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o15BlockSolverBaseD2Ev[_ZN3g2o15BlockSolverBaseD2Ev]+0x22): undefined reference to
g2o::Solver::~Solver()'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEED2Ev[_ZN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEED2Ev]+0x43): undefined reference to
g2o::OptimizableGraph::Vertex::~Vertex()' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o8BaseEdgeILi1EdED2Ev[_ZN3g2o8BaseEdgeILi1EdED2Ev]+0x31): undefined reference to
g2o::OptimizableGraph::Edge::~Edge()'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEC2Ev[_ZN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEC2Ev]+0x17): undefined reference to
g2o::OptimizableGraph::Vertex::Vertex()' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEC2Ev[_ZN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEC2Ev]+0xbf): undefined reference to
g2o::OptimizableGraph::Vertex::~Vertex()'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o15BlockSolverBaseC2Ev[_ZN3g2o15BlockSolverBaseC2Ev]+0x14): undefined reference to
g2o::Solver::Solver()' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o8BaseEdgeILi1EdEC2Ev[_ZN3g2o8BaseEdgeILi1EdEC2Ev]+0x17): undefined reference to
g2o::OptimizableGraph::Edge::Edge()'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o8BaseEdgeILi1EdEC2Ev[_ZN3g2o8BaseEdgeILi1EdEC2Ev]+0x74): undefined reference to
g2o::OptimizableGraph::Edge::~Edge()' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTV16CurveFittingEdge[_ZTV16CurveFittingEdge]+0x40): undefined reference to
g2o::OptimizableGraph::Edge::setMeasurementData(double const*)'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTV16CurveFittingEdge[_ZTV16CurveFittingEdge]+0x48): undefined reference to
g2o::OptimizableGraph::Edge::getMeasurementData(double*) const' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTV16CurveFittingEdge[_ZTV16CurveFittingEdge]+0x50): undefined reference to
g2o::OptimizableGraph::Edge::measurementDimension() const'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTV16CurveFittingEdge[_ZTV16CurveFittingEdge]+0x58): undefined reference to
g2o::OptimizableGraph::Edge::setMeasurementFromState()' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTV16CurveFittingEdge[_ZTV16CurveFittingEdge]+0xd8): undefined reference to
g2o::OptimizableGraph::Edge::resolveCaches()'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o13BaseUnaryEdgeILi1Ed18CurveFittingVertexEE[_ZTVN3g2o13BaseUnaryEdgeILi1Ed18CurveFittingVertexEE]+0x40): undefined reference to
g2o::OptimizableGraph::Edge::setMeasurementData(double const*)' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o13BaseUnaryEdgeILi1Ed18CurveFittingVertexEE[_ZTVN3g2o13BaseUnaryEdgeILi1Ed18CurveFittingVertexEE]+0x48): undefined reference to
g2o::OptimizableGraph::Edge::getMeasurementData(double*) const'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o13BaseUnaryEdgeILi1Ed18CurveFittingVertexEE[_ZTVN3g2o13BaseUnaryEdgeILi1Ed18CurveFittingVertexEE]+0x50): undefined reference to
g2o::OptimizableGraph::Edge::measurementDimension() const' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o13BaseUnaryEdgeILi1Ed18CurveFittingVertexEE[_ZTVN3g2o13BaseUnaryEdgeILi1Ed18CurveFittingVertexEE]+0x58): undefined reference to
g2o::OptimizableGraph::Edge::setMeasurementFromState()'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o13BaseUnaryEdgeILi1Ed18CurveFittingVertexEE[_ZTVN3g2o13BaseUnaryEdgeILi1Ed18CurveFittingVertexEE]+0xd8): undefined reference to
g2o::OptimizableGraph::Edge::resolveCaches()' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o18BaseFixedSizedEdgeILi1EdJ18CurveFittingVertexEEE[_ZTVN3g2o18BaseFixedSizedEdgeILi1EdJ18CurveFittingVertexEEE]+0x40): undefined reference to
g2o::OptimizableGraph::Edge::setMeasurementData(double const*)'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o18BaseFixedSizedEdgeILi1EdJ18CurveFittingVertexEEE[_ZTVN3g2o18BaseFixedSizedEdgeILi1EdJ18CurveFittingVertexEEE]+0x48): undefined reference to
g2o::OptimizableGraph::Edge::getMeasurementData(double*) const' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o18BaseFixedSizedEdgeILi1EdJ18CurveFittingVertexEEE[_ZTVN3g2o18BaseFixedSizedEdgeILi1EdJ18CurveFittingVertexEEE]+0x50): undefined reference to
g2o::OptimizableGraph::Edge::measurementDimension() const'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o18BaseFixedSizedEdgeILi1EdJ18CurveFittingVertexEEE[_ZTVN3g2o18BaseFixedSizedEdgeILi1EdJ18CurveFittingVertexEEE]+0x58): undefined reference to
g2o::OptimizableGraph::Edge::setMeasurementFromState()' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o18BaseFixedSizedEdgeILi1EdJ18CurveFittingVertexEEE[_ZTVN3g2o18BaseFixedSizedEdgeILi1EdJ18CurveFittingVertexEEE]+0xd8): undefined reference to
g2o::OptimizableGraph::Edge::resolveCaches()'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o8BaseEdgeILi1EdEE[_ZTVN3g2o8BaseEdgeILi1EdEE]+0x28): undefined reference to
g2o::HyperGraph::Edge::resize(unsigned long long)' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o8BaseEdgeILi1EdEE[_ZTVN3g2o8BaseEdgeILi1EdEE]+0x40): undefined reference to
g2o::OptimizableGraph::Edge::setMeasurementData(double const*)'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o8BaseEdgeILi1EdEE[_ZTVN3g2o8BaseEdgeILi1EdEE]+0x48): undefined reference to
g2o::OptimizableGraph::Edge::getMeasurementData(double*) const' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o8BaseEdgeILi1EdEE[_ZTVN3g2o8BaseEdgeILi1EdEE]+0x50): undefined reference to
g2o::OptimizableGraph::Edge::measurementDimension() const'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o8BaseEdgeILi1EdEE[_ZTVN3g2o8BaseEdgeILi1EdEE]+0x58): undefined reference to
g2o::OptimizableGraph::Edge::setMeasurementFromState()' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o8BaseEdgeILi1EdEE[_ZTVN3g2o8BaseEdgeILi1EdEE]+0xd8): undefined reference to
g2o::OptimizableGraph::Edge::resolveCaches()'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTV18CurveFittingVertex[_ZTV18CurveFittingVertex]+0x88): undefined reference to
g2o::OptimizableGraph::Vertex::getEstimateData(double*) const' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTV18CurveFittingVertex[_ZTV18CurveFittingVertex]+0x98): undefined reference to
g2o::OptimizableGraph::Vertex::estimateDimension() const'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTV18CurveFittingVertex[_ZTV18CurveFittingVertex]+0xa0): undefined reference to
g2o::OptimizableGraph::Vertex::getMinimalEstimateData(double*) const' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTV18CurveFittingVertex[_ZTV18CurveFittingVertex]+0xb0): undefined reference to
g2o::OptimizableGraph::Vertex::minimalEstimateDimension() const'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTV18CurveFittingVertex[_ZTV18CurveFittingVertex]+0xe8): undefined reference to
g2o::OptimizableGraph::Vertex::updateCache()' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEE[_ZTVN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEE]+0x88): undefined reference to
g2o::OptimizableGraph::Vertex::getEstimateData(double*) const'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEE[_ZTVN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEE]+0x98): undefined reference to
g2o::OptimizableGraph::Vertex::estimateDimension() const' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEE[_ZTVN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEE]+0xa0): undefined reference to
g2o::OptimizableGraph::Vertex::getMinimalEstimateData(double*) const'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEE[_ZTVN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEE]+0xb0): undefined reference to
g2o::OptimizableGraph::Vertex::minimalEstimateDimension() const' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$_ZTVN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEE[_ZTVN3g2o10BaseVertexILi3EN5Eigen6MatrixIdLi3ELi1ELi0ELi3ELi1EEEEE]+0xe8): undefined reference to
g2o::OptimizableGraph::Vertex::updateCache()'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE15updateStructureERKSt6vectorIPNS_10HyperGraph6VertexESaIS7_EERKSt3setIPNS5_4EdgeESt4lessISE_ESaISE_EE[_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE15updateStructureERKSt6vectorIPNS_10HyperGraph6VertexESaIS7_EERKSt3setIPNS5_4EdgeESt4lessISE_ESaISE_EE]+0x23c): undefined reference to
g2o::Solver::resizeVector(unsigned long long)' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE5solveEv[_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE5solveEv]+0x3d): undefined reference to
g2o::get_monotonic_time()'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE5solveEv[_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE5solveEv]+0xc1): undefined reference to
g2o::get_monotonic_time()' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE5solveEv[_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE5solveEv]+0x138): undefined reference to
g2o::get_monotonic_time()'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE5solveEv[_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE5solveEv]+0xa59): undefined reference to
g2o::get_monotonic_time()' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE5solveEv[_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE5solveEv]+0xa7c): undefined reference to
g2o::get_monotonic_time()'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE5solveEv[_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE5solveEv]+0xb05): more undefined references to
g2o::get_monotonic_time()' follow C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o18BaseFixedSizedEdgeILi1EdJ18CurveFittingVertexEE6resizeEy[_ZN3g2o18BaseFixedSizedEdgeILi1EdJ18CurveFittingVertexEE6resizeEy]+0x46): undefined reference to
g2o::HyperGraph::Edge::resize(unsigned long long)'C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.text$_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE6resizeEPiiS4_ii[_ZN3g2o11BlockSolverINS_17BlockSolverTraitsILi3ELi1EEEE6resizeEPiiS4_ii]+0x35): undefined reference to
g2o::Solver::resizeVector(unsigned long long)' C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: CMakeFiles\g2oCurveFitting.dir/objects.a(g2oCurveFitting.cpp.obj):g2oCurveFitting.cpp:(.rdata$.refptr._ZN3g2o18G2OBatchStatistics12_globalStatsE[.refptr._ZN3g2o18G2OBatchStatistics12_globalStatsE]+0x0): undefined reference to
g2o::G2OBatchStatistics::_globalStats'collect2.exe: error: ld returned 1 exit status
mingw32-make[2]: *** [CMakeFiles\g2oCurveFitting.dir\build.make:117: g2oCurveFitting.exe] Error 1
mingw32-make[1]: *** [CMakeFiles\Makefile2:86: CMakeFiles/g2oCurveFitting.dir/all] Error 2
mingw32-make: *** [Makefile:90: all] Error 2
The text was updated successfully, but these errors were encountered: