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

What revision of C is targeted by ROS 2?

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

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

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

Dirk Thomas gravatar image

Yes, we use / need C11. I updated the REP accordingly:

edit flag offensive delete link more


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 -0500 )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 -0500 )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 -0500 )edit

@William the PR is here: (strncpy_s / strncpy incompatibility) - seems like we finally went with memcopy.

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

Question Tools

1 follower


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

Seen: 144 times

Last updated: Feb 14 '19