NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Microcontroller Programming » Error during make

December 05, 2010
by dwillson
dwillson's Avatar

I have copied some code from the internet. When I try to run make I get this error a2d.h:140: error: expected '=', ',', ';', 'asm' or 'attribute' before ' a2dIsComplete'

    //! return TRUE if conversion is complete
    u08 a2dIsComplete(void);

The code is from robotsociety website for building the $50 robot and i am using it to, hopefully, learn some more about PWM and A2D. I have included <avrlibtypes.h> and u08 is defined.
Thanks in advance!!!!!

December 06, 2010
by bretm
bretm's Avatar

The forum omitted some HTML that you may have pasted in so it doesn't say what you included to define u08. That is indeed what it's complaining about.

Post a Reply

Please log in to post a reply.

Did you know that NerdKits has been featured on Slashdot, Hack A Day, Hacked Gadgets, the MAKE blog, and other DIY-oriented websites? Learn more...