Ask Your Question

Revision history [back]

This answer helped me, to find a solution for my problem:

catkin_make -DCMAKE_CXX_FLAGS="-Wno-error=old-style-cast"

This also works with catkin build.

A permanent fix would have been to just remove the -Werror=old-style-cast from my own CMakeLists.txt, of course. But I preferred to have a quick workaround to see, whether my code compiles in general and afterwards potentially go on and fix the third party code.