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 `int boost::math::sign<double>(double const&)' #410

Open
muellerbernd opened this issue Jun 5, 2023 · 1 comment

Comments

@muellerbernd
Copy link

Hello, on archlinux and NixOS we get an error while compiling: undefined reference to int boost::math::sign<double>(double const&) . The reason is that in newer boost versions you need to include a new header. We have fixed that with the following patch:

diff --color -Naur teb_local_planner-release-release-noetic-teb_local_planner/include/teb_local_planner/h_signature.h teb_local_planner-release-release-noetic-teb_local_planner_new/include/teb_local_planner/h_signature.h
--- A/include/teb_local_planner/h_signature.h   2020-05-29 18:12:46.000000000 +0200
+++ B/include/teb_local_planner/h_signature.h   2023-01-20 19:56:56.259209108 +0100
@@ -51,6 +51,7 @@
 #include <functional>
 #include <vector>
 #include <iterator>
+#include <boost/math/special_functions/sign.hpp>


 namespace teb_local_planner

see also this issue in the nix-ros-overlay repo.

loco-choco added a commit to loco-choco/teb_local_planner that referenced this issue Jun 28, 2023
@loco-choco
Copy link

Created this fix so I could use it in my projects.

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