Home \ Help \ Search \ Login RSS

Welcome, Guest. Please Login

This forum is now READ-ONLY! Please visit http://forum.wiring.co/ for the new forum.

Wiring ForumProgramming Questions & HelpLibrary writers › Arduino GLCD lib problem

Page Index Toggle Pages: 1
Arduino GLCD lib problem (Read 21109 times)
03/20/11 at 23:49:31

Zap   Offline
YaBB Newbies
Tnks Zap
Ausi

Posts: 22
*
 
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.
 

IP Logged
 
Reply #1 - 03/21/11 at 21:44:42

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
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" 

 
IP Logged
 
Reply #2 - 03/21/11 at 23:55:44

Zap   Offline
YaBB Newbies
Tnks Zap
Ausi

Posts: 22
*
 
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.
 

IP Logged
 
Reply #3 - 03/22/11 at 00:05:27

barragan   Offline
YaBB Administrator

Posts: 939
*****
 
hi Zap remove those includes Wiring.h or arduino*.h and include only WProgram.h
 
IP Logged
 
Reply #4 - 03/22/11 at 00:15:04

Zap   Offline
YaBB Newbies
Tnks Zap
Ausi

Posts: 22
*
 
Thanks again for that , It now compiles OK, now to see if I can get the hardware to work.

Zap.
 

IP Logged
 
Page Index Toggle Pages: 1