wjwwood / serial

Cross-platform, Serial Port library written in C++
http://wjwwood.github.com/serial/
MIT License
2.11k stars 1.03k forks source link

"undefined reference to" problems #219

Closed AndyRay1998 closed 3 years ago

AndyRay1998 commented 4 years ago

When I am using it in ROS-kinetic and try to catkin_make using g++, the problems show like in the picture. 图片 Do anyone know what is going on here? I am using ubuntu 16.04 64bit.

wjwwood commented 3 years ago

I know this is an old issue, but for people arriving here from the future:

Seems like you're not linking to the serial library, so missing a target_link_libraries or something similar.

In the future, try not to include pictures of text, and perhaps provide the CMakeLists.txt.