Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 85

undefined reference to log4cxx

$
0
0
Hi , I'm compiling ROS source of indigo, with `clang3.9 , libc++ and c++11`. I compile perfectly until I get to the `rosout`package. I get this errors: /home/ubuntu/ros_catkin_ws/install_isolated/lib/librosconsole_log4cxx.so: undefined reference to `log4cxx::spi::LocationInfo::getMethodName() const' /home/ubuntu/ros_catkin_ws/install_isolated/lib/librosconsole_log4cxx.so: undefined reference to `log4cxx::Logger::getLogger(std::__1::basic_string, std::__1::allocator> const&)' /home/ubuntu/ros_catkin_ws/install_isolated/lib/librosconsole_log4cxx.so: undefined reference to `log4cxx::File::File(std::__1::basic_string, std::__1::allocator> const&)' /home/ubuntu/ros_catkin_ws/install_isolated/lib/librosconsole_log4cxx.so: undefined reference to `log4cxx::Logger::forcedLog(log4cxx::helpers::ObjectPtrT const&, std::__1::basic_string, std::__1::allocator> const&, log4cxx::spi::LocationInfo const&) const' /home/ubuntu/ros_catkin_ws/install_isolated/lib/librosconsole_log4cxx.so: undefined reference to `log4cxx::AppenderSkeleton::setOption(std::__1::basic_string, std::__1::allocator> const&, std::__1::basic_string, std::__1::allocator> const&)' clang: error: linker command failed with exit code 1 (use -v to see invocation) I have checked that the library is installed and the simbols are inside. The thing is the library `log4cxx`seems to be compiled for stdlibc++. Does anyone have any clue on how to fix this? Is there any susbstitute for log4cxx compatible with libc++? Thanks a lot in advance

Viewing all articles
Browse latest Browse all 85

Trending Articles