DS18B20 problem with wiring

Compiles fine for me in IDE 1.0. It sounds like it isn't finding the library which could be that you don't have it, installed it in the wrong place, or haven't restarted the IDE since you did install it.