Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hover_vicon.launch. error:This file requires compiler and library support for the ISO C++ 2011 standard. #32

Open
ddwy opened this issue May 15, 2021 · 1 comment

Comments

@ddwy
Copy link

ddwy commented May 15, 2021

When I ran the hover_vicon.launch,the following error occurred.

In file included from /usr/include/c++/5/array:35:0,
from /home/ubuntu/ros_ws/src/vicon_bridge/vicon_sdk/DataStream/ViconDataStreamSDKCore/RetimingClient.h:28,
from /home/ubuntu/ros_ws/src/vicon_bridge/vicon_sdk/DataStream/ViconDataStreamSDKCore/CoreClient.h:27,
from /home/ubuntu/ros_ws/src/vicon_bridge/vicon_sdk/DataStream/ViconDataStreamSDK_CPP/DataStreamClient.cpp:31:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #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
^
In file included from /home/ubuntu/ros_ws/src/vicon_bridge/vicon_sdk/DataStream/ViconDataStreamSDK_CPP/DataStreamClient.cpp:29:0:
/home/ubuntu/ros_ws/src/vicon_bridge/vicon_sdk/DataStream/ViconDataStreamSDK_CPP/DataStreamClient.h:57:10: error: ‘shared_ptr’ in namespace ‘std’ does not name a template type
std::shared_ptr< std::vector< unsigned char > > m_Data;
^
In file included from /usr/include/c++/5/array:35:0,
from /home/ubuntu/ros_ws/src/vicon_bridge/vicon_sdk/DataStream/ViconDataStreamSDKCore/RetimingClient.h:28,
from /home/ubuntu/ros_ws/src/vicon_bridge/vicon_sdk/DataStream/ViconDataStreamSDKCore/CoreClient.h:27,
from /home/ubuntu/ros_ws/src/vicon_bridge/vicon_sdk/DataStream/ViconDataStreamSDK_CPP/DataStreamRetimingClient.cpp:29:
/usr/include/c++/5/bits/c++0x_warning.h:32:2: error: #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
^
^Cvicon_bridge/CMakeFiles/vicon_sdk.dir/build.make:86: recipe for target 'vicon_bridge/CMakeFiles/vicon_sdk.dir/vicon_sdk/DataStream/ViconDataStreamSDK_CPP/DataStreamRetimingClient.cpp.o' failed
make[2]: *** [vicon_bridge/CMakeFiles/vicon_sdk.dir/vicon_sdk/DataStream/ViconDataStreamSDK_CPP/DataStreamRetimingClient.cpp.o] Interrupt
Traceback (most recent call last):
File "/opt/ros/kinetic/bin/catkin_make", line 298, in
sys.exit(main())
File "/opt/ros/kinetic/bin/catkin_make", line 242, in main
run_command(cmd, make_path)
File "/opt/ros/kinetic/lib/python2.7/dist-packages/catkin/builder.py", line 239, in run_command
vicon_bridge/CMakeFiles/vicon_sdk.dir/build.make:62: recipe for target 'vicon_bridge/CMakeFiles/vicon_sdk.dir/vicon_sdk/DataStream/ViconDataStreamSDK_CPP/DataStreamClient.cpp.o' failed
make[2]: *** [vicon_bridge/CMakeFiles/vicon_sdk.dir/vicon_sdk/DataStream/ViconDataStreamSDK_CPP/DataStreamClient.cpp.o] Interrupt
proc.wait()
File "/usr/lib/python2.7/subprocess.py", line 1392, in wait
CMakeFiles/Makefile2:4304: recipe for target 'vicon_bridge/CMakeFiles/vicon_sdk.dir/all' failed
make[1]: *** [vicon_bridge/CMakeFiles/vicon_sdk.dir/all] Interrupt
Makefile:138: recipe for target 'all' failed
make: *** [all] Interrupt
pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
File "/usr/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
return func(*args)

@ddwy
Copy link
Author

ddwy commented May 17, 2021

Add the following statement to the CMakeLists.txt:

SET( CMAKE_CXX_FLAGS "-std=c++11 -O3")

@ddwy ddwy changed the title hover_vicon.launch error hover_vicon.launch error This file requires compiler and library support for the ISO C++ 2011 standard. May 17, 2021
@ddwy ddwy changed the title hover_vicon.launch error This file requires compiler and library support for the ISO C++ 2011 standard. hover_vicon.launch. error:This file requires compiler and library support for the ISO C++ 2011 standard. May 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant