Invalid library found error

I keep receiving an invalid library found error, after compiling sketches. How can I correct that?

There are three common causes of the invalid library warning:

  • You saved a sketch to the libraries folder. Sketches are only allowed in that folder as examples inside the folder of a valid library. Fix: move the sketch anywhere else other than the libraries folder.
  • Incorrect installation of a valid library. The library folder must be directly under the libraries folder, not in a subfolder. This means the library must have either a .h file or a library.properties file in its root folder. Fix: move the library folder to directly under the libraries folder.
  • Something that's neither library nor sketch in the libraries folder. Fix: move it somewhere else, anywhere other than the libraries folder.

This report would have more information with "Show verbose output during compilation" enabled in File > Preferences. Arduino: 1.0.6 (Windows 7), Board: "Arduino Uno" In file included from Scrolling.ino:12: C:\Users\prakash\Documents\Arduino\libraries\MAX7219_Dot_Matrix-master\src/MAX7219_Dot_Matrix.h:11: error: ISO C++ forbids declaration of 'bitBangedSPI' with no type C:\Users\prakash\Documents\Arduino\libraries\MAX7219_Dot_Matrix-master\src/MAX7219_Dot_Matrix.h:11: error: expected ';' before '*' token C:\Users\prakash\Documents\Arduino\libraries\MAX7219_Dot_Matrix-master\src/MAX7219_Dot_Matrix.h: In constructor 'MAX7219_Dot_Matrix::MAX7219_Dot_Matrix(byte, byte, byte, byte)': C:\Users\prakash\Documents\Arduino\libraries\MAX7219_Dot_Matrix-master\src/MAX7219_Dot_Matrix.h:35: error: class 'MAX7219_Dot_Matrix' does not have any field named 'bbSPI_'

Please post a link (using the chain links icon on the forum toolbar to make it clickable) to where you downloaded the MAX7219_Dot_Matrix library from.

pert: [u]There are three common causes of the invalid library warning:[/u] [u]- [u]You saved a sketch to the libraries folder. Mygiftcardsite sketches are only allowed in that folder as examples inside the folder of a valid library. Fix: move the sketch anywhere else other than the libraries folder.[/li][/u][/u] [u][u]- [u]Incorrect installation of a valid library. The library folder must be directly under the libraries folder, not in a subfolder. This means the library must have either a .h file or a library.properties file in its root folder. Fix: move the library folder to directly under the libraries folder.[/u][/u][/u] [u][u]- [u]Something that's neither library nor sketch in the libraries folder. Fix: move it somewhere else, anywhere other than the libraries folder.[/u][/u][/u][/u][/u] [u][u][/list][/u][/u] [u][u][/quote][/u][/u] [u][u]Nice, that worked like a charm :)[/u][/u] [u][u]Thank you very much.[/u][/u]

You're welcome. I'm glad if I was able to be of assistance. Enjoy! Per