Error compiling

hey guys! just need from anyone who can help…
i am compiling this code when it comes with this kind of error;

#include <NewSoftSerial.h> //Software Serial Port
#define RxD 2
#define TxD 3

NewSoftSerial blueToothSerial(RxD,TxD);

void setup()
{
Serial.begin(9600); //Serial port for debugging, Comment this line if not required
pinMode(RxD, INPUT);
pinMode(TxD, OUTPUT);
setupBlueToothConnection();

}

void loop()
{

if(blueToothSerial.read() == ‘a’)
{
blueToothSerial.println(“You are connected to Bluetooth Bee”);
//You can write you BT communication logic here
}
}

void setupBlueToothConnection()
{
Serial.print(“Setting up Bluetooth link”); //For debugging, Comment this line if not required
blueToothSerial.begin(9600); //Set BluetoothBee BaudRate to default baud rate 38400
delay(1000);
sendBlueToothCommand("\r\n+STWMOD=0\r\n");
sendBlueToothCommand("\r\n+STNA=modem\r\n");
sendBlueToothCommand("\r\n+STAUTO=0\r\n");
sendBlueToothCommand("\r\n+STOAUT=1\r\n");
sendBlueToothCommand("\r\n+STPIN=0000\r\n");
delay(2000); // This delay is required.
blueToothSerial.print("\r\n+INQ=1\r\n");
delay(2000); // This delay is required.
Serial.print(“Setup complete”);

}

void sendBlueToothCommand(char command)
{
char a;
blueToothSerial.print(command);
Serial.print(command); //For debugging, Comment this line if not required
delay(1000);

while(blueToothSerial.available()) //For debugging, Comment this line if not required
{ //For debugging, Comment this line if not required
Serial.print(char(blueToothSerial.read())); //For debugging, Comment this line if not required
} //For debugging, Comment this line if not required
}


ERROR COMPILING:
In file included from code2.cpp:1:
D:\shielarose’s personal files\installers\Installers\arduino-1.0.1\libraries\NewSoftSerial/NewSoftSerial.h:71: error: conflicting return type specified for ‘virtual void NewSoftSerial::write(uint8_t)’
D:\shielarose’s personal files\installers\Installers\arduino-1.0.1\hardware\arduino\cores\arduino/Print.h:48: error: overriding ‘virtual size_t Print::write(uint8_t)’

what must be the possible answer for this error? can anyone help me please… thanks!

This:

#include <NewSoftSerial.h>   //Software Serial Port

and this:

D:\shielarose’s personal files\installers\Installers<mark>arduino-1.0.1\libraries\NewSoftSerial/NewSoftSerial.h:71:

don’t go together.

User downloaded libraries, like NewSoftSerial absolutely DO NOT go in the core libraries folder.

Get it out of there, and use SoftwareSerial instead. It’s (nearly)the same class with a new name, but modified to work with 1.0+ versions of the IDE, and comes with the IDE.

try it without the pinMode in the setup

try it without the pinMode in the setup

Do you really think that is going to fix the compile errors?

Is the version of the NSS library 1.0.1 compatible? There are a few things changed since 1.0