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 imageWilliam ( 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 imageThomas ( 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 imageWilliam ( 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 imageThomas ( 2019-02-15 13:58:59 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

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

Seen: 40 times

Last updated: Feb 14 '19