diff --git a/rclcpp/include/rclcpp/create_generic_client.hpp b/rclcpp/include/rclcpp/create_generic_client.hpp index adc3970131..558c19e8e5 100644 --- a/rclcpp/include/rclcpp/create_generic_client.hpp +++ b/rclcpp/include/rclcpp/create_generic_client.hpp @@ -40,6 +40,7 @@ namespace rclcpp * \param[in] group Callback group to handle the reply to service calls. * \return Shared pointer to the created client. */ +RCLCPP_PUBLIC rclcpp::GenericClient::SharedPtr create_generic_client( std::shared_ptr node_base, diff --git a/rclcpp/include/rclcpp/node.hpp b/rclcpp/include/rclcpp/node.hpp index f89cc02992..f17eb1e066 100644 --- a/rclcpp/include/rclcpp/node.hpp +++ b/rclcpp/include/rclcpp/node.hpp @@ -329,6 +329,7 @@ class Node : public std::enable_shared_from_this * \param[in] group Callback group to handle the reply to service calls. * \return Shared pointer to the created GenericClient. */ + RCLCPP_PUBLIC rclcpp::GenericClient::SharedPtr create_generic_client( const std::string & service_name,