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

When building the c++ driver I get the following error. Any idea why that could be? #5

Closed
bnlerner opened this issue Apr 8, 2024 · 2 comments

Comments

@bnlerner
Copy link

bnlerner commented Apr 8, 2024

.../myactuator_rmd/src/can/utilities.cpp:11:29: error: 'const struct can_frame' has no member named 'len'
@2b-t
Copy link
Owner

2b-t commented Apr 8, 2024

Hi @bnlerner,
What operating system ($ cat /etc/os-release) and kernel ($ uname -r) are you using?
Can you check the contents of linux/can.h ($ sudo find / -name can.h) and see what the structure can_frame looks like? I think in older kernel versions this parameter used to be called can_dlc but this is now deprecated in favour of len (see here and here). Therefore you should be able to just modify this line to use can_dlc instead of len (or 8 as I think this should be the length of the can frames through-out my code).

@bnlerner
Copy link
Author

bnlerner commented Apr 8, 2024

Thanks that worked! I'm using 20.04.6

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

2 participants