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

Fix ringbuffer linker errors #2222

Merged
merged 4 commits into from
May 24, 2015
Merged

Conversation

bansiesta
Copy link
Contributor

I ran into issues like this:

LidarLitePWM.cpp.o:(.rodata._ZTV10RingBuffer+0x0): multiple definition of `vtable for RingBuffer'

I didn't really understand why the linking errors occured but I saw that e. g. there were no issues for the device/spi.cpp. Since there files are separated by a namespace __EXPORT, I gave it a try.

My WIP code now compiles fine, and I was also able to get rid of the weird workaround of including ringbuffer.cpp in ringbuffer.h for PX4:

@LorenzMeier LorenzMeier merged commit 362fc20 into PX4:master May 24, 2015
@bansiesta bansiesta deleted the fix_ringbuffer branch May 24, 2015 21:22
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

Successfully merging this pull request may close these issues.

2 participants