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

c++11 library for indigo catkin package

asked 2014-08-15 04:07:35 -0500

matheusz gravatar image

Hi,

I have a library (a server using std::thread and some other c++11 things like auto) which is compiled into mylib.a.

I want to use this library in my indigo catkin ros node. But apparently ROS is c++03 only for now.

Do I have to rewrite the library to c++03? Or can I use it as long as the ros node itself stays c++03 compatible?

edit retag flag offensive close merge delete

Comments

As far as I know they are not ABI compatible.

dornhege gravatar image dornhege  ( 2014-08-15 04:16:56 -0500 )edit

My experience has been that basic things like the std::vector and std::string are not ABI-compatible between c++03 and c++11, so mixing code compiled by different c++ versions is a bad idea.

ahendrix gravatar image ahendrix  ( 2014-08-15 17:27:48 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2014-08-16 00:52:35 -0500

matheusz gravatar image

I'm getting weird linker errors when testing to build a simple catkin package with this library and c++11 enabled in the compiler. So it won't work then. Thanks for the responses.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-08-15 04:07:35 -0500

Seen: 1,616 times

Last updated: Aug 16 '14