Hello! I have simple subscriber project, but there some problems. I'm using Ubuntu 11.04 2.6.38-11-generic, gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-8ubuntu4), GNU ld (GNU Binutils for Ubuntu) 2.21.0.20110327 and GNU Make 3.81. I have
- /project/include/DepthListener.h,
- /project/src/DepthListener.cpp,
- /project/src/depthConverter.cpp.
When I try to make project, I receive next errors:
CMakeFiles/depthListener.dir/src/depthListener.o: In function `main':
/ros/depthListen/src/depthListener.cpp:6: undefined reference to `DepthConverter::DepthConverter()'
/ros/depthListen/src/depthListener.cpp:6: undefined reference to `DepthConverter::~DepthConverter()'
/ros/depthListen/src/depthListener.cpp:6: undefined reference to `DepthConverter::~DepthConverter()'
collect2: ld returned 1 exit status
As I undestand, make does not see DepthListener.cpp file and problem somewhere in CMakeLists.txt.
There are all files:
Thanks for help!
Originally posted by CaptainTrunky on ROS Answers with karma: 546 on 2011-10-14
Post score: 0