Hi,
When I'm trying compile ros2 application using the ROS-data-type string.hpp, get the following error. I do not understand how do link the headers
Starting >>> simple_test
--- stderr: simple_test
In file included from /home/z0013488/ros2_dashing/src/simple_test/src/test.cpp:5:0:
/home/z0013488/ros-data-types/install/include/std_msgs/msg/String.hpp:24:10: fatal error: dds/domain/DomainParticipant.hpp: No such file or directory
#include "dds/domain/DomainParticipant.hpp"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
gmake[2]: *** [CMakeFiles/my_test.dir/src/test.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/my_test.dir/all] Error 2
gmake: *** [all] Error 2
---
Failed <<< simple_test [ Exited with code 2 ]
Summary: 0 packages finished [0.37s]
1 package failed: simple_test
1 package had stderr output: simple_test
I have the file in :
/home/z0013488/rti_connext_dds-5.3.1/include/ndds/hpp/dds/domain/DomainParticipant.hpp
how and where should I link this include directory.. ??
thank you!
Hi,
The include #include "dds/domain/DomainParticipant.hpp" is in your RTI DDS distribution at <your RTI Distribution>\include\ndds\hpp\dds\domain\DomainParticipant.hpp.
You need in your make the include path to be: at <your RTI Distribution>\include\ndds\hpp
Irwin