roboticslab-uc3m / questions-and-answers

A place for general debate and question&answer
https://robots.uc3m.es/developer-manual/appendix/repository-index.html
2 stars 0 forks source link

Error compiling with new versions of YARP on Debian 6.0.1 machines #22

Closed jgvictores closed 7 years ago

jgvictores commented 7 years ago

Error compiling with new versions of YARP on Debian 6.0.1 machines.

/usr/local/include/yarp/os/Contact.h:334: error: wrong number of arguments specified for ‘__deprecated__’ attribute
/usr/local/include/yarp/os/Contact.h:344: error: wrong number of arguments specified for ‘__deprecated__’ attribute
/usr/local/include/yarp/os/Contact.h:354: error: wrong number of arguments specified for ‘__deprecated__’ attribute
/usr/local/include/yarp/os/Contact.h:365: error: wrong number of arguments specified for ‘__deprecated__’ attribute
/usr/local/include/yarp/os/Contact.h:375: error: wrong number of arguments specified for ‘__deprecated__’ attribute
/usr/local/include/yarp/os/Contact.h:391: error: wrong number of arguments specified for ‘__deprecated__’ attribute
/usr/local/include/yarp/os/Contact.h:405: error: wrong number of arguments specified for ‘__deprecated__’ attribute
/usr/local/include/yarp/os/Contact.h:416: error: wrong number of arguments specified for ‘__deprecated__’ attribute
/usr/local/include/yarp/os/Contact.h:429: error: wrong number of arguments specified for ‘__deprecated__’ attribute
/usr/local/include/yarp/os/Contact.h:441: error: wrong number of arguments specified for ‘__deprecated__’ attribute
/usr/local/include/yarp/os/Contact.h:459: error: wrong number of arguments specified for ‘__deprecated__’ attribute
/usr/local/include/yarp/os/Contact.h:473: error: wrong number of arguments specified for ‘__deprecated__’ attribute

The small hack for this can be seen on this line of yarp-devices root CMakeLists.txt:

add_definitions(-DYARP_NO_DEPRECATED_WARNINGS=ON)