Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
bernardo9921 opened this issue Aug 9, 2023 · 0 comments

Comments

@bernardo9921
Copy link

bernardo9921 commented Aug 9, 2023

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
  1. Which programming language/tool do you use?
  • C++
  1. Which operating system do you use?
  • Ubuntu 20.04.6
  1. Which USB serial converter do you use?
  • U2D2
  1. Which DYNAMIXEL do you use?
  • XM430-W350
  1. 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.
  1. 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant