Error compiling for board Arduino/Genuino Mega or Mega 2560

Hi everyone!
I face the following error while compiling the code for my project, and I could not solve it. can anyone help please?

C:\Users\REZA\Documents\Arduino\libraries\DallasTemperature_250\DallasTemperature.cpp:11:24: fatal error: WConstants.h: No such file or directory

#include "WConstants.h"


compilation terminated.

Multiple libraries were found for "OneWire.h"
Used: C:\Users\REZA\Documents\Arduino\libraries\OneWire
Not used: C:\Users\REZA\Documents\Arduino\libraries\DallasTemperature_250
Multiple libraries were found for "DallasTemperature.h"
Used: C:\Users\REZA\Documents\Arduino\libraries\DallasTemperature_250
Not used: C:\Users\REZA\Documents\Arduino\libraries\Temperature_library_master
Not used: C:\Users\REZA\Documents\Arduino\libraries\Arduino-Temperature-Control-Library-master
exit status 1
Error compiling for board Arduino/Genuino Mega or Mega 2560.

Where did you download the DallasTemperature library from? I did a search and found the version you're using "DallasTemperature_250" is very old and the problem has been fixed in the latest version.

The cause of the error is that old versions of Arduino IDE, which was based on Wiring IDE used still the same Wiring core library names (hence the "W" in WConstants,h). When Arduino IDE 1.0 was released Arduino had the brilliant idea to change the file name to Arduino.h and break every 3rd party library, just so they could avoid giving any reference to the original project that the creator of Arduino had basically copied and rebranded.