ROBOTIS-GIT / DynamixelSDK

ROBOTIS Dynamixel SDK (Protocol1.0/2.0)
http://emanual.robotis.com/docs/en/software/dynamixel/dynamixel_sdk/overview/
Apache License 2.0
445 stars 398 forks source link

Compilation error: Undefined reference to dynamixel::PortHandler::getPortHandler #603

Open bernardo9921 opened 1 year ago

bernardo9921 commented 1 year ago

ISSUE TEMPLATE ver. 1.2.0

Please fill this template for more accurate and prompt support.

  1. Which DYNAMIXEL SDK version do you use?

    • 3.7.42
  2. Which programming language/tool do you use?

    • C++
  3. Which operating system do you use?

    • Ubuntu 20.04.6
  4. Which USB serial converter do you use?

    • U2D2
  5. Which DYNAMIXEL do you use?

    • XM430-W350
  6. Have you searched the issue from the closed issue threads?

    • Yes, there's not the same error and some similar gave me some ideas, however nothing helped.
  7. Please describe the issue in detail

    • I'm trying to run the example read_write code with C++ and Linux, but there's the same error in two different lines: undefined reference to 'dynamixel::PortHandler::getPortHandler(char const*)'. And the same with 'getPacketHandler(float)'. collect2: error: ld returned 1 exit statues.

I tried to put all the corresponding .h and .cpp in the same file, but it didn't work neither. I downloaded the latest version available in the github too.

I'm using protocol2.0 and linux64.

  1. How can we reproduce the issue?
    • I guess just trying to compile the read_write sample code. I just did it and there was that error.