'dht' does not name a type

That's odd, post the code that gave you that.