lundi 3 juillet 2017

boost filesystem segmentation fault in C++11 with ROS

My CMakeLists.txt includes

add_definitions(-std=c++11)

And it compiles fine. But seg-faults when I run the executable.

Using gdb, I found the cause:

Thread 1 "pg_generator" received signal SIGSEGV, Segmentation fault.
0x00007ffff762935d in boost::filesystem::detail::status(boost::filesystem::path const&, boost::system::error_code*) () from /usr/local/boost/1.64.0/stage/lib/libboost_filesystem.so.1.64.0

Seems like boost::filesystem is not working? Any ideas how to fix this?

I tried apt-get update and apt-get upgrade and rebooting. (I'm on Ubuntu 16.04.)

Aucun commentaire:

Enregistrer un commentaire