ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

What revision of C is targeted by ROS 2?

asked 2019-02-14 15:26:11 -0600

Thomas gravatar image

REP-2000 is stating that ROS 2 is targeting C++14. What about C? Is it a safe assume that all packages are compiled against C11?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2019-02-14 15:34:55 -0600

Dirk Thomas gravatar image

Yes, we use / need C11. I updated the REP accordingly: https://github.com/ros-infrastructure...

edit flag offensive delete link more

Comments

Windows doesn't implement C11 (and I don't think they intend to do so).

William gravatar image William  ( 2019-02-14 15:39:27 -0600 )edit

Awesome! Indeed the reason I was asking this is due to Windows related build issues.

Thomas gravatar image Thomas  ( 2019-02-14 18:28:11 -0600 )edit

@Thomas I'd be interested to know what issues you've been having, since I've dealt with a few over the past few years related to C11 and Windows.

William gravatar image William  ( 2019-02-14 18:51:16 -0600 )edit

@William the PR is here: https://github.com/ros2/rcl/pull/332 (strncpy_s / strncpy incompatibility) - seems like we finally went with memcopy.

Thomas gravatar image Thomas  ( 2019-02-15 13:58:59 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2019-02-14 15:26:11 -0600

Seen: 159 times

Last updated: Feb 14 '19