'dht' does not name a type

Try:

DHT dht;