ENC28J60 Ethernet Shield Compile Errors

Hi guys,

I am trying to make this work: http://www.nuelectronics.com/estore/index.php?main_page=product_info&cPath=1&products_id=4

I install the library and run an example but i get many of compile errors. Here is an example error.

C:\arduino-1.0.1-windows\arduino-1.0.1\libraries\etherShield\enc28j60.c: In function 'enc28j60WriteOp':
C:\arduino-1.0.1-windows\arduino-1.0.1\libraries\etherShield\enc28j60.c:66: error: 'LOW' undeclared (first use in this function)
C:\arduino-1.0.1-windows\arduino-1.0.1\libraries\etherShield\enc28j60.c:73: error: 'HIGH' undeclared (first use in this function)

I believe the problem is the way the variables were defined. Example:

#define CSACTIVE digitalWrite(ENC28J60_CONTROL_CS, LOW)

How can I make this work? Any suggestions?

I install the library

In the wrong place. User downloaded libraries do NOT go in the core library folder.

How can I make this work? Any suggestions?

That library has not been upgraded to 1.0+. Which version of the IDE are you using?

If it is 1.0+, change WConstants,h to Arduino.h in all the files that include WConstants.h.

Thanks, it compiles now!