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

/usr/local/include/gtsam/base/OptionalJacobian.h:126:43: error: function definition does not declare parameters #1585

Closed
WZG3661 opened this issue Jul 20, 2023 · 2 comments

Comments

@WZG3661
Copy link

WZG3661 commented Jul 20, 2023

Description

I use gtsam in my code, when I compile my code, and it reports an error:

Errors     << ov_fusion:make /home/Work/open_vins/logs/ov_fusion/build.make.002.log                                
In file included from /usr/local/include/gtsam/base/Matrix.h:27,
                 from /usr/local/include/gtsam/base/VerticalBlockMatrix.h:20,
                 from /usr/local/include/gtsam/nonlinear/internal/JacobianMap.h:23,
                 from /usr/local/include/gtsam/nonlinear/Expression.h:22,
                 from /usr/local/include/gtsam/nonlinear/ExpressionFactor.h:25,
                 from /usr/local/include/gtsam/nonlinear/ExpressionFactorGraph.h:21,
                 from /home/Work/open_vins/src/open_vins/ov_fusion/src/loose_fusion.cpp:14:
/usr/local/include/gtsam/base/OptionalJacobian.h:126:43: error: function definition does not declare parameters
  126 |   OptionalJacobian(std::nullopt_t /*none*/) :
      |                                           ^
compilation terminated due to -Wfatal-errors.
make[2]: *** [CMakeFiles/ov_fusion_lib.dir/build.make:63: CMakeFiles/ov_fusion_lib.dir/src/loose_fusion.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:234: CMakeFiles/ov_fusion_lib.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
cd /home/Work/open_vins/build/ov_fusion; catkin build --get-env ov_fusion | catkin env -si  /usr/bin/make --jobserver-auth=3,4; cd -
@WZG3661 WZG3661 closed this as completed Jul 20, 2023
@WZG3661 WZG3661 reopened this Jul 20, 2023
@WZG3661
Copy link
Author

WZG3661 commented Jul 20, 2023

Fixed, change C++ version

@WZG3661 WZG3661 closed this as completed Jul 20, 2023
@lptl
Copy link

lptl commented Jan 31, 2024

May I ask which C++ version you are using to solve the errror?

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

2 participants