nodelet: error: nullptr was not declared in this scope
I'm trying to install the ros base from source following this link, everyting works fine.
Then I download the package nodelet
and all of its dependencies packages. However, when I compile all of packages with catkin_make
, I get an error:
[ 75%] Building CXX object CMakeFiles/nodeletlib.dir/src/loader.cpp.o
In file included from /root/system-full/tmp/install_isolated/include/class_loader/class_loader.hpp:46:0,
from /root/system-full/tmp/install_isolated/include/class_loader/multi_library_class_loader.hpp:42,
from /root/system-full/tmp/install_isolated/include/pluginlib/class_loader.hpp:38,
from /root/system-full/tmp/src/nodelet_core/nodelet/src/loader.cpp:34:
/root/system-full/tmp/install_isolated/include/class_loader/class_loader_core.hpp: In function ‘void class_loader::impl::registerPlugin(const string&, const string&)’:
/root/system-full/tmp/install_isolated/include/class_loader/class_loader_core.hpp:183:7: error: ‘nullptr’ was not declared in this scope
if (nullptr == getCurrentlyActiveClassLoader()) {
I can compile the package class_loader
without any error but when I try to compile the package nodelet
, I will get the error above.