catkin_make fails on feature test macro.
[Ubuntu 13.10, ROS Hydro-Desktop-Full (built from source)]
I am getting an error I can't find a resolution to when using catkin_make
for a project of mine.
For some reason, it fails on a line in a header file which turns dispatch_release()
on/off based on CLANG's __has_feature(objc_arc)
feature test macro.
[100%] Building CXX object gwbrb/CMakeFiles/gwbrb_node.dir/src/gwbrb.cpp.o
In file included from /home/user/projects/gWRb/src/gwbrb/src/gwbrb.h:5:0,
from /home/user/projects/gWRb/src/gwbrb/src/gwbrb.cpp:16:
/home/user/projects/gswb/gwbw.h:110:19: error: missing binary operator before token "("
#if !__has_feature(objc_arc)
^
make[2]: *** [gwbrb/CMakeFiles/gwbrb_node.dir/src/gwbrb.cpp.o] Error 1
make[1]: *** [gwbrb/CMakeFiles/gwbrb_node.dir/all] Error 2
make: *** [all] Error 2
Invoking "make" failed
Does catkin switch to Obj-c when it needs to, or do I have to tell it manually? Can someone please assist with instructions?
Cheers, Nap