Skip to content

Commit 74fd0d0

Browse files
committed
Fix linker error
When compiling the examples that use the action client/server, you got "undefined reference" errors for any `rcl_action_*` functions during the linking phase. Telling rustc to link against the rcl_action shared library fixes this.
1 parent 38a471c commit 74fd0d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

rclrs/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ fn main() {
116116
}
117117

118118
println!("cargo:rustc-link-lib=dylib=rcl");
119+
println!("cargo:rustc-link-lib=dylib=rcl_action");
119120
println!("cargo:rustc-link-lib=dylib=rcl_yaml_param_parser");
120121
println!("cargo:rustc-link-lib=dylib=rcutils");
121122
println!("cargo:rustc-link-lib=dylib=rmw");

0 commit comments

Comments
 (0)