-
Notifications
You must be signed in to change notification settings - Fork 9
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
multiple definition of `_drive_speed' #146
Comments
What version of the simple libraries are you using? I'll see if I can reproduce the issue with the version being pulled in by PropWare. Also, what branch of PropWare? |
Ye, using the files being pulled in my PropWare. I'm on Windows, Propware version 3.0.0.182, installed with the installer. As a workaround I copy pasted the c files from the abdrive folder, and it is working just fine that way. |
I'm able to build the attached project with the following size:
If you run into the same error with the attached project, can you build with You are not able to reproduce the problem with the attached project, then please attach your project and I'll see if I can reproduce it with that. |
Thanks for the test file, that strangely builds for me.
|
Well that sure is interesting isn't it? That one function was used all over the place in the demo program and didn't have any issues. |
Ye that surely is wierd... |
Long story short: there are obviously multiple definitions of the function in the Simple library. I'm seeing drive_speed.c in libarlo and libabdrive360 as well as libabdrive's speed.c. The correct fix is to get Parallax to rename all three functions to be unique (they do each have different implementations) but that could take anywhere from a day to a few years, depending on whether or not they care to support this use case. So... I'm trying to find a work around. But now I have to go to work and make the real money :P |
Thanks, that would make sense. My current workaround is to copy the whole abdrive folder (with headers and c files) or abdrive360 respectively, whatever is needed. This works perfectly in my usecase. |
When building PropWare with the include
#include <abdrive.h>
or#include <abdrive360.h>
you get the following error from CMake:I suspect this is due to abdrive and abdrive both having the same functions (drive_goto, drive_speed, etc)
Any idea on how to fix that?
The text was updated successfully, but these errors were encountered: