Hello all,
I tried to rewrite most of $50 robot code from scratch to make sure I understood everything. However, after adding
#include a2d.h
to my code, I got the error message
undefined reference to `a2dConvert8bit'
This is an error message that did not appear when I used the tutorial's code. My guess is that it has something to do with the makefile (I am just using AVR studio's default one, as opposed to the external one given in the tutorial)
Anyways, I noticed I could get there error message to go away if I added
#include a2d.c
to my code and added that file to my project directory. However, while the program compiles, I do not think the a2dconvert8bit function is actually working correctly. My guess is again that it has something to do with the makefile, because that is the only thing I haven't touched so far.
Can someone please explain in simplified English what a makefile is and how it works. Does anyone know of a way to fix my problem while still using AVR studio's default makefile? I would prefer that, because I opened up the tutorial's makefile to see what was inside and it looked mostly like gibberish, and I would prefer to not have to learn what all that stuff means, and instead just use the default makefile for all my projects.
Any help is appreciated. Thanks