Wii Classic Controller Error

Which version of the IDE are you using? I pasted the first code into the IDE (0022), and the second code into a new tab, named WiiClassic.h. The program failed to compile, but it complained only about the WiiClassic.h file. When I added
#include <WProgram.h> to the WiiClassic.h tab, the program compiled successfully.