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

Revision history [back]

I finally solve the problem changing the compiler from gcc-5 to clang. It is not an optimal solution but it works for me:

Ubuntu 14.04 have GCC-4.X and in ubuntu 16.04 the default version is GCC-5.X. first, I try to change the default version using "sudo update-alternatives --config gcc" and selecting GCC-4.8 but it doesn't work for me.

So, simply I add this lines to CMakeLists.txt

set(CMAKE_CXX_COMPILER "clang++")

set(CMAKE_C_COMPILER "clang")

if you need to install clang in ubuntu 16.04: sudo apt-get install clang

I hope It helps you.