ROS in eclipse - not compiling std libs

asked 2018-12-22 07:05:17 -0500

danielroth gravatar image

Hi all, I follow this steps to run ROS in eclipse,

  • in catkin_ws catkin_make --force-cmake -G"Eclipse CDT4 - Unix Makefiles" awk -f $(rospack find mk)/eclipse.awk build/.project > build/.project_with_env && mv build/.project_with_env build/.project cmake src -DCMAKE_BUILD_TYPE=Debug source ~/catkin_ws/deval/setup.bash

*open eclipse (eclipse command) *open project: file->import->general->existing_projects...

*select project from catkin_ws/build folder

now, when compiling in eclipse it shows 'problems' in the following std libraries, -mutex -thread -condition_variable

does anyone know why and how to fix?

edit retag flag offensive close merge delete



Have a look at this: ETHZ

You should also remember to set manually in Eclipse include path to your c++ std libs directory if it didn't add automatically.

rayvburn gravatar image rayvburn  ( 2018-12-23 03:07:48 -0500 )edit

I didnt know I can set the include path manually - how do I do that?

danielroth gravatar image danielroth  ( 2018-12-23 05:35:19 -0500 )edit

It's something like Project->Properties->C/C++ General->Paths and Symbols or Preprocessor Include Paths, Macros etc.

rayvburn gravatar image rayvburn  ( 2018-12-23 08:56:21 -0500 )edit

I will try it - thank you!

danielroth gravatar image danielroth  ( 2018-12-24 00:56:58 -0500 )edit