ROS2 compile a standalone node: undefined references to `std::__throw_bad_array_new_length()'
显示 更早的评论
Hi all,
I am trying to create a standalone node for ROS2 with a publisher (see schema below) and I am using the following tutorial to set up the model to generate the code:

but when I compile it, I obtain the following error
undefined reference to `std::__throw_bad_array_new_length()
and I don't find a way to fix (below the imag with the error). I also got the same error with the Simulink model used in the tutorial.

System info:
- OS: Ubuntu 22.04 LTS
- ROS2 version: Humble
- gcc version: 11.4.0
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Publishers and Subscribers 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
