Monday, July 28, 2014

Gallery of Errors

In my explorations with Arduino, I have encountered many errors with the compiler and other areas. This is a place to list those issues and their solutions in the hopes of helping others and easily fixing them next time I encounter them.

Arduino compiler error

error: expected constructor, destructor, or type conversion before '.'
Caused by calling a instance method outside of a function. This is confusing because I instantiate/initialize the object instance outside of any function, but I cannot call a configuration method on the object on the next line.

Arduino compiler error

error: 'void Example::loop()' cannot be overloaded
Caused by failing to close the class declaration of 'Example' in the Example.h header. Add "};" to the end of the file. ;-p

No comments:

Post a Comment