ros-industrial / abb_libegm

A C++ library for interfacing with ABB robot controllers supporting Externally Guided Motion (689-1)
BSD 3-Clause "New" or "Revised" License
93 stars 53 forks source link

Add definition for WRITE_TIMEOUT_MS and WAIT_TIME_MS static attributes #102

Closed traversaro closed 4 years ago

traversaro commented 4 years ago

See https://stackoverflow.com/questions/16957458/static-const-in-c-class-undefined-reference/16957554 for the extendend explanation. Note that this constant may be accessed by reference, depending if standalone ASIO is used, or depending on the specific Boost::Asio version.

The problem appeared when compiling in Debug, and when using standalone Asio or Boost 1.69 or 1.71, while it was not happening when using Boost 1.65.

Fix https://github.com/ros-industrial/abb_libegm/issues/67 .

traversaro commented 4 years ago

According to https://github.com/ros-industrial/abb_libegm/issues/67#issuecomment-652453967 , this should fix the build in Noetic that uses Boost 1.71 from Ubuntu 20.04.