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:
There are three common causes of the invalid library warning:
- 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]
- 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.[/u][/u]
[/list]
[/quote]
Nice, that worked like a charm
Thank you very much.
You're welcome. I'm glad if I was able to be of assistance. Enjoy!
Per