Skip to content

Commit bb11078

Browse files
authored
Update Writing-a-Composable-Node.rst (ros2#5796)
Loading the node into the component container fails as it builds a static library. Signed-off-by: Muhammad Awais <[email protected]>
1 parent 56679d2 commit bb11078

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/Tutorials/Intermediate/Writing-a-Composable-Node.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Second, we're going to replace our ``add_executable`` with a ``add_library`` wit
9393

9494
.. code-block:: cmake
9595
96-
add_library(vincent_driver_component src/vincent_driver.cpp)
96+
add_library(vincent_driver_component SHARED src/vincent_driver.cpp)
9797
9898
Third, replace other build commands that used the old target to act on the new target.
9999
Don't forget to add ``rclcpp_components::component`` in ``target_link_libraries``.

0 commit comments

Comments
 (0)