You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a ROCK installation, I am using a c++11 type within a struct and get an error such as
In file included from /usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/tuple:35:
/usr/lib/gcc/x86_64-linux-gnu/6.3.0/../../../../include/c++/6.3.0/bits/c++0x_warning.h:32:2: error: This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support \
^
1 error generated.
when building an orogen component using this type. I found that it works when calling castxml with "-std=c++11". I tried to set TYPELIB_CASTXML_DEFAULT_OPTIONS using export and using Autobuild's package.define method, but the option is not respected. Hard-coding the option into typelibs ruby bindings for calling castxml works.
The text was updated successfully, but these errors were encountered:
Hi @vbargsten. So far, orogen itself has unfortunately no way to specify the C++ standard it should be using on the command line and/or through the orogen file. This would be a welcome addition (hint hint ... ;-))
It will automatically "switch" to C++11 if one of the used libraries (through using_library) uses it and specifies the standard in its pkg-config file.
In a ROCK installation, I am using a c++11 type within a struct and get an error such as
when building an orogen component using this type. I found that it works when calling castxml with "-std=c++11". I tried to set
TYPELIB_CASTXML_DEFAULT_OPTIONS
using export and using Autobuild's package.define method, but the option is not respected. Hard-coding the option into typelibs ruby bindings for calling castxml works.The text was updated successfully, but these errors were encountered: