beagleboard / librobotcontrol

Robotics Focused library for embedded Linux computers. Mirror of https://git.beagleboard.org/beagleboard/librobotcontrol
https://beagleboard.org/librobotcontrol
MIT License
196 stars 158 forks source link

Add support for C++. #83

Closed ycdtosa closed 6 years ago

ycdtosa commented 6 years ago

This commit does address issue 81, allowing the use of the library from C++ code.

fixes #81

Thalaivar commented 6 years ago

I added the extern commands to roboticscape.h yet i get this error: /tmp/ccL4xTbq.o: In function 'main': test.cpp:(.text+0x4): undefined reference to `rc_initialize' collect2: error: ld returned 1 exit status

ycdtosa commented 6 years ago

sounds like you are not linking it properly.

StrawsonDesign commented 6 years ago

all headers in v0.4.0 have the extern C defs now.