[Rock-dev] using c++11 CMAKE_CXX_FLAGS

Sylvain Joyeux bir.sylvain at gmail.com
Wed Dec 10 20:42:26 CET 2014


On Mon, Dec 8, 2014 at 8:51 AM, Leif Christensen
<leif.christensen at dfki.de> wrote:
> Hi,
>
> I was wondering, if using the c++11 standard in my lib (perhaps later
> using base-types) would break any Rock stuff? Couldn't image how, but
> just to be sure.
>
> Using it like this in my CMakeLists.txt
>> list(APPEND CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")

After a quick googling, there's no guarantee that you won't hit ABI
compatibility issues, i.e. that libraries that you use would have a
different ABI when compiled with C++11 and C++03. Boost is especially
problematic.

In addition, gccxml does not support C++11, so you'll have to avoid
C++11 in anything that orogen has to swallow until the clang importer
is released.

Sylvain


More information about the Rock-dev mailing list