WConstant error using NewSoftSerial Library

Hello,

I keep getting this error and I don't know what to do. Can someone please help me? I've been trying to figure this out for days. I would really appreciate the help: WConstants.h: No such file or directory

#include "WConstants.h"

This is the code:

#include <NewSoftSerial.h>

/-----( Import needed libraries )-----/

#include <SoftwareSerial.h>

/-----( Declare Constants and Pin Numbers )-----/

#define SSerialRX 10 //Serial Receive pin

#define SSerialTX 11 //Serial Transmit pin

#define SSerialTxControl 3 //RS485 Direction control

#define RS485Transmit HIGH

#define RS485Receive LOW

#define Pin13LED 13

/-----( Declare objects )-----/

SoftwareSerial RS485Serial(SSerialRX, SSerialTX); // RX, TX

/-----( Declare Variables )-----/

int byteReceived;

int byteSend;

void setup() /****** SETUP: RUNS ONCE ******/
{
// Start the built-in serial port, probably to Serial Monitor

Serial.begin(9600);

Serial.println("Hello World");

Serial.println("Goodnight Moon");

pinMode(Pin13LED, OUTPUT);

pinMode(SSerialTxControl, OUTPUT);

digitalWrite(SSerialTxControl, RS485Receive); // Init Transceiver

// Start the software serial port, to another device

RS485Serial.begin(4800); // set the data rate

}//--(end setup )---

void loop() /****** LOOP: RUNS CONSTANTLY ******/
{
digitalWrite(Pin13LED, HIGH); // Show activity

if (Serial.available())
{
byteReceived = Serial.read();

digitalWrite(SSerialTxControl, RS485Transmit); // Enable RS485 Transmit

RS485Serial.write(byteReceived); // Send byte to Remote Arduino

digitalWrite(Pin13LED, LOW); // Show activity

delay(10);
digitalWrite(SSerialTxControl, RS485Receive); // Disable RS485 Transmit
}

if (RS485Serial.available()) //Look for data from other Arduino
{
digitalWrite(Pin13LED, HIGH); // Show activity

byteReceived = RS485Serial.read(); // Read received byte

Serial.write(byteReceived); // Show on Serial Monitor

delay(10);

digitalWrite(Pin13LED, LOW); // Show activity
}

}//--(end main loop )---

/-----( Declare User-written Functions )-----/

//NONE

//( THE END )**

Starting with Arduino 1.0 (December, 2011), NewSoftSerial has replaced the old SoftwareSerial library as the officially supported software serial library. This means that if you have the IDE version 1.0 or later, you should not download this library. To port your code to 1.x, simply change all NewSoftSerial references to SoftwareSerial.

'New' is never sensible to put in a name for a module, everything ends up being legacy some day.

MarkT:
'New' is never sensible to put in a name for a module, everything ends up being legacy some day.

Except for Ian Dury's "New Boots and Panties", which has never been surpassed. 8)