Wiring Forum
http://wiring.org.co/cgi-bin/yabb/YaBB.pl
Programming Questions & Help >> Library writers >> Arduino GLCD lib problem
http://wiring.org.co/cgi-bin/yabb/YaBB.pl?num=1300664971

Message started by Zap on 03/20/11 at 23:49:31

Title: Arduino GLCD lib problem
Post by Zap on 03/20/11 at 23:49:31
I'm trying to use the Arduino GLCD ( graphic LCD) Lib but when I compile I get an error " /glcd_Device.h error: WPrint.h no such file "
Now I've had a look in glcd_Device.h and here is the problem area:
#if defined WIRING
#include <WPrint.h> // used when deriving this class in Wiring
#else
#include "Print.h" // used when deriving this class in Arduino
#endif

I can't find WPrint.h anywhere in Wiring.
Can you suggest a solution to this ??

Thanks zap.

Title: Re: Arduino GLCD lib problem
Post by barragan on 03/21/11 at 21:44:42
this:

#if defined WIRING
#include <WPrint.h> // used when deriving this class in Wiring
#else
#include "Print.h" // used when deriving this class in Arduino
#endif


make it:

#include "Print.h" 


Title: Re: Arduino GLCD lib problem
Post by Zap on 03/21/11 at 23:55:44
Thanks for that , I forgot to mention I tried that but it gets hung up further wanting Wiring.h in a few other files. As well as pins_arduino.h in another include.

Are there equivalent include files in Wireing?

Thanks Zap.

Title: Re: Arduino GLCD lib problem
Post by barragan on 03/22/11 at 00:05:27
hi Zap remove those includes Wiring.h or arduino*.h and include only WProgram.h

Title: Re: Arduino GLCD lib problem
Post by Zap on 03/22/11 at 00:15:04
Thanks again for that , It now compiles OK, now to see if I can get the hardware to work.

Zap.

Wiring Forum » Powered by YaBB 2.5 AE!
YaBB Forum Software © 2000-2010. All Rights Reserved.