External Library Link Error [closed]
I'm trying to use external library file "libdssp_rs232_drive_module.so".
I met following error message.
Linking CXX executable ../dssp
CMakeFiles/dssp.dir/src/dssp.o: In function `main':
/home/hass/my_robot/dssp/src/dssp.cpp:9: undefined reference to `dssp_rs232_drv_module_create(char const*, int)'
collect2: ld returned 1 exit status
------------------------------------------------------------------------------
My setup files are followings
CMakeLists.txt
cmake_minimum_required(VERSION 2.4.6)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
rosbuild_init()
rosbuild_add_executable(dssp src/dssp.cpp)
target_link_libraries(dssp dssp_rs232_drive_module)
manifest.xml
<package>
...
<export>
<cpp cflags="-I${prefix}/include" lflags="-L${prefix}/lib -Wl,-rpath,${prefix}/lib -ldssp_rs232_drive_module"/>
</export>
</package>
How can I solve this problem?
PS. I tried to make execution file of microstrain_3dmgx2_imu Package, which is the officially published package in ROS DIAMONDBACK. sudo make clean sudo make But I met the same error massage. Why does the officially published package have the same link error?
Closed for the following reason
question is not relevant or outdated by
kwc
close date 2012-02-29 07:53:18
Comments


