-
Notifications
You must be signed in to change notification settings - Fork 1k
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
undefined reference to `serial::list_ports()'| #78
Comments
I can compile example locally on my Mac and the definition for that function is in the https://github.com/wjwwood/serial/blob/master/include/serial/serial.h#L734 Can you give more info on how you are building this? |
|
@ejb1123 that looks like a successful build to me 😄 You can try |
|
That looks like a success to me too, maybe you had an old version of the serial library lying around and when you compile it found the new header, but when you tried to link you got the old version of the library. Either was I don't see any issue with the output you posted above. |
Thanks for the help i got it working in code blocks. |
I get
undefined reference to
serial::list_ports()'` when i try to use the example file.the error is thrown in this line https://github.com/wjwwood/serial/blob/master/examples/serial_example.cc#L49
The text was updated successfully, but these errors were encountered: