Saved searches

Use saved searches to filter your results more quickly

Cancel Create saved search Sign up Reseting focus

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

lcm-proj / lcm Public

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined reference to `lcm_create' #332

Joechencc opened this issue Jul 31, 2020 · 2 comments

undefined reference to `lcm_create' #332

Joechencc opened this issue Jul 31, 2020 · 2 comments

Comments

Joechencc commented Jul 31, 2020

Same applies to lcm_publish' and lcm_destory'. Where should I add lcm to Cmake?

CMakeFiles/pointcloudlistener.dir/src/pointcloudlistener.cpp.o: In function callback(boost::shared_ptr const> const&)': pointcloudlistener.cpp:(.text+0x93a): undefined reference to lcm_create'
pointcloudlistener.cpp:(.text+0xabc): undefined reference to lcm_publish' CMakeFiles/pointcloudlistener.dir/src/pointcloudlistener.cpp.o: In function lcm::LCM::~LCM()':
pointcloudlistener.cpp:(.text._ZN3lcm3LCMD2Ev[_ZN3lcm3LCMD5Ev]+0x91): undefined reference to `lcm_destroy'
collect2: error: ld returned 1 exit status
beginner_tutorials/CMakeFiles/pointcloudlistener.dir/build.make:384: recipe for target '/home/chaonew/catkin_ws/devel/lib/beginner_tutorials/pointcloudlistener' failed
make[2]: *** [/home/chaonew/catkin_ws/devel/lib/beginner_tutorials/pointcloudlistener] Error 1
CMakeFiles/Makefile2:821: recipe for target 'beginner_tutorials/CMakeFiles/pointcloudlistener.dir/all' failed
make[1]: *** [beginner_tutorials/CMakeFiles/pointcloudlistener.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

The text was updated successfully, but these errors were encountered: