I am using window.
When I set CGO_CFLAGS, it still gives an error
Here is my build file
SET CGO_ENABLED=1
SET CGO_CFLAGS=-ID:\ros2-windows\include\rosidl_runtime_c -ID:\ros2-windows\include\rcl_action -ID:\ros2-windows\include\action_msgs -ID:\ros2-windows\include\unique_identifier_msgs -ID:\ros2-windows\include\builtin_interfaces -ID:\ros2-windows\include\rosidl_typesupport_interface -ID:\ros2-windows\include\rcl -ID:\ros2-windows\include\rcutils -ID:\ros2-windows\include\rmw -ID:\ros2-windows\include\rcl_yaml_param_parser
SET CGO_LDFLAGS=-LD:\ros2-windows\Lib -Wl,-rpath,li
go build
error message:
# github.com/tiiuae/rclgo/pkg/rclgo
C:\Users\hp\go\pkg\mod\github.com\tiiuae\rclgo@v0.0.0-20221018150000-7c344e61ae13\pkg\rclgo\action.go:424:16: could not determine kind of name for C.rcl_action_accept_new_goal
C:\Users\hp\go\pkg\mod\github.com\tiiuae\rclgo@v0.0.0-20221018150000-7c344e61ae13\pkg\rclgo\action.go:641:9: could not determine kind of name for C.rcl_action_cancel_response_fini
C:\Users\hp\go\pkg\mod\github.com\tiiuae\rclgo@v0.0.0-20221018150000-7c344e61ae13\pkg\rclgo\action.go:880:8: could not determine kind of name for C.rcl_action_client_fini
C:\Users\hp\go\pkg\mod\github.com\tiiuae\rclgo@v0.0.0-20221018150000-7c344e61ae13\pkg\rclgo\action.go:854:8: could not determine kind of name for C.rcl_action_client_init
C:\Users\hp\go\pkg\mod\github.com\tiiuae\rclgo@v0.0.0-20221018150000-7c344e61ae13\pkg\rclgo\action.go:1194:8: could not determine kind of name for C.rcl_action_client_wait_set_get_entities_ready
C:\Users\hp\go\pkg\mod\github.com\tiiuae\rclgo@v0.0.0-20221018150000-7c344e61ae13\pkg\rclgo\action.go:530:9: could not determine kind of name for C.rcl_action_expire_goals
C:\Users\hp\go\pkg\mod\github.com\tiiuae\rclgo@v0.0.0-20221018150000-7c344e61ae13\pkg\rclgo\action.go:685:8: could not determine kind of name for C.rcl_action_get_goal_status_array
...
I am using window. When I set CGO_CFLAGS, it still gives an error
Here is my build file
error message:
why is this?
Thanks!