Error while including <DallasTemperature.h>

I was trying to use DallasTemperature for may project, but after I ran my program there were some errors.

My whole program is:

#include <DallasTemperature.h>

void setup()
{
}

void loop()
{
}

BUT after I compiled it, these errors came out:

In file included from sketch_may14a.ino:1:
C:\Program Files (x86)\Arduino\libraries\DallasTemperature/DallasTemperature.h:64: error: expected `)' before '' token
C:\Program Files (x86)\Arduino\libraries\DallasTemperature/DallasTemperature.h:222: error: ISO C++ forbids declaration of 'OneWire' with no type
C:\Program Files (x86)\Arduino\libraries\DallasTemperature/DallasTemperature.h:222: error: expected ';' before '
' token

WHAT DO THEY MEAN???? :roll_eyes:

I downloaded the file from
http://milesburton.com/Dallas_Temperature_Control_Library#Download

It seems you have to add OneWire library as well. you can get it from here http://www.pjrc.com/teensy/arduino_libraries/OneWire.zip

There are many versions of the library on that page. Which one did you download?

The simple example sketch includes OneWire.h. Yours does not. That's a clue...

Oh~
after I imported OneWire it was solved~
Thanks!