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

undefined reference to `AnalogBufferDMA::init(ADC*, signed char)' #78

Open
jnivard opened this issue May 29, 2021 · 2 comments
Open

undefined reference to `AnalogBufferDMA::init(ADC*, signed char)' #78

jnivard opened this issue May 29, 2021 · 2 comments

Comments

@jnivard
Copy link

jnivard commented May 29, 2021

I try to compile the adc_timer_dma code and recieve the following error. :

C:\Users\Gebruiker\Documents\Arduino\MySketchs\ADC adc_timer_dma_V5/ADCadc_timer_dma_V5.ino:68: undefined reference to `AnalogBufferDMA::init(ADC*, signed char)'
I have tryed all the examples in this forum treed but all have the same result!
https://forum.pjrc.com/threads/62082-Bug-in-Teensyduino-1-53-ADC-examples-not-working?p=280252#post280252

@jnivard
Copy link
Author

jnivard commented May 29, 2021

solved by replacing
#include <AnalogBufferDMA.h> by
#include <AnalogBufferDMA.cpp>

It is compiling correctly now

@pedvide
Copy link
Owner

pedvide commented Nov 27, 2022

Are you using the latest version of this library or the one included with Teensyduino?

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