Quantcast

error: undefined reference to 'boost::system::get_system_category()'

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

error: undefined reference to 'boost::system::get_system_category()'

Robbie Plankenhorn
Is there any reason why I would be getting this error when compiling my own packages?  I just started getting this error.

/usr/bin/ld: CMakeFiles/test_client.dir/test_client.o: in function __static_initialization_and_destruction_0(int, int):test_client.cpp(.text+0x1be): error: undefined reference to 'boost::system::get_system_category()'
  /usr/bin/ld: CMakeFiles/test_client.dir/test_client.o: in function __static_initialization_and_destruction_0(int, int):test_client.cpp(.text+0x1c8): error: undefined reference to 'boost::system::get_generic_category()'
  /usr/bin/ld: CMakeFiles/test_client.dir/test_client.o: in function __static_initialization_and_destruction_0(int, int):test_client.cpp(.text+0x1d2): error: undefined reference to 'boost::system::get_generic_category()'
  /usr/bin/ld: CMakeFiles/test_client.dir/test_client.o: in function __static_initialization_and_destruction_0(int, int):test_client.cpp(.text+0x1dc): error: undefined reference to 'boost::system::get_generic_category()'
  /usr/bin/ld: CMakeFiles/test_client.dir/test_client.o: in function __static_initialization_and_destruction_0(int, int):test_client.cpp(.text+0x1e6): error: undefined reference to 'boost::system::get_system_category()'

Robbie

_______________________________________________
ros-users mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: error: undefined reference to 'boost::system::get_system_category()'

Josh Faust
Are you using any of the boost libraries that relies on Boost.System?  If so you need to add system to the boost rospack_link_boost line.

If not a package you depend on is exposing it in its headers and not exporting the boost flags.  Adding system to your link line will still work, but we should figure out which package it is.

Josh

On Tue, Apr 20, 2010 at 7:30 AM, Robbie Plankenhorn <[hidden email]> wrote:
Is there any reason why I would be getting this error when compiling my own packages?  I just started getting this error.

/usr/bin/ld: CMakeFiles/test_client.dir/test_client.o: in function __static_initialization_and_destruction_0(int, int):test_client.cpp(.text+0x1be): error: undefined reference to 'boost::system::get_system_category()'
  /usr/bin/ld: CMakeFiles/test_client.dir/test_client.o: in function __static_initialization_and_destruction_0(int, int):test_client.cpp(.text+0x1c8): error: undefined reference to 'boost::system::get_generic_category()'
  /usr/bin/ld: CMakeFiles/test_client.dir/test_client.o: in function __static_initialization_and_destruction_0(int, int):test_client.cpp(.text+0x1d2): error: undefined reference to 'boost::system::get_generic_category()'
  /usr/bin/ld: CMakeFiles/test_client.dir/test_client.o: in function __static_initialization_and_destruction_0(int, int):test_client.cpp(.text+0x1dc): error: undefined reference to 'boost::system::get_generic_category()'
  /usr/bin/ld: CMakeFiles/test_client.dir/test_client.o: in function __static_initialization_and_destruction_0(int, int):test_client.cpp(.text+0x1e6): error: undefined reference to 'boost::system::get_system_category()'

Robbie

_______________________________________________
ros-users mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-users



_______________________________________________
ros-users mailing list
[hidden email]
https://code.ros.org/mailman/listinfo/ros-users
Loading...