why am i getting message "error compiling for board

I have been trying to upload a code for arduino using temperature sensor but I get this fatal error no such directory. I uploaded the library so i have no idea what is going on

At this point neither do we.

What hardware are you using?
Where is your code?
Where did you put the library?
Have you ever been successful in getting a sketch to work?

.

i have been successful uploading multiple sketches for various projects. I am using the arduino uno hardware
The code is

// FILE: dht22_test.ino
// AUTHOR: Rob Tillaart
// VERSION: 0.1.03
// PURPOSE: DHT library test sketch for DHT22 && Arduino
// URL:
// HISTORY:
// 0.1.03 extended stats for all errors
// 0.1.02 added counters for error-regression testing.
// 0.1.01
// 0.1.00 initial version
//
// Released to the public domain
//

#include <DHT.h>

#define DHT22_PIN 5

struct
{
uint32_t total;
uint32_t ok;
uint32_t crc_error;
uint32_t time_out;
uint32_t connect;
uint32_t ack_l;
uint32_t ack_h;
uint32_t unknown;
} stat = { 0,0,0,0,0,0,0,0};

void setup()
{
Serial.begin(115200);
Serial.println(“dht22_test.ino”);
Serial.print("LIBRARY VERSION: ");
Serial.println(DHT_LIB_VERSION);
Serial.println();
Serial.println(“Type,\tstatus,\tHumidity (%),\tTemperature (C)\tTime (us)”);
}

void loop()
{
// READ DATA
Serial.print(“DHT22, \t”);

uint32_t start = micros();
int chk = DHT.read22(DHT22_PIN);
uint32_t stop = micros();

stat.total++;
switch (chk)
{
case DHTLIB_OK:
stat.ok++;
Serial.print(“OK,\t”);
break;
case DHTLIB_ERROR_CHECKSUM:
stat.crc_error++;
Serial.print(“Checksum error,\t”);
break;
case DHTLIB_ERROR_TIMEOUT:
stat.time_out++;
Serial.print(“Time out error,\t”);
break;
case DHTLIB_ERROR_CONNECT:
stat.connect++;
Serial.print(“Connect error,\t”);
break;
case DHTLIB_ERROR_ACK_L:
stat.ack_l++;
Serial.print(“Ack Low error,\t”);
break;
case DHTLIB_ERROR_ACK_H:
stat.ack_h++;
Serial.print(“Ack High error,\t”);
break;
default:
stat.unknown++;
Serial.print(“Unknown error,\t”);
break;
}
// DISPLAY DATA
Serial.print(DHT.humidity, 1);
Serial.print(",\t");
Serial.print(DHT.temperature, 1);
Serial.print(",\t");
Serial.print(stop - start);
Serial.println();

if (stat.total % 20 == 0)
{
Serial.println("\nTOT\tOK\tCRC\tTO\tUNK");
Serial.print(stat.total);
Serial.print("\t");
Serial.print(stat.ok);
Serial.print("\t");
Serial.print(stat.crc_error);
Serial.print("\t");
Serial.print(stat.time_out);
Serial.print("\t");
Serial.print(stat.connect);
Serial.print("\t");
Serial.print(stat.ack_l);
Serial.print("\t");
Serial.print(stat.ack_h);
Serial.print("\t");
Serial.print(stat.unknown);
Serial.println("\n");
}
delay(2000);
}
//
// END OF FILE
//

Where did you install the DHT library?
did you close all IDEs after installing the library?

.

Arduino: 1.6.8 (Windows 7), Board: "Arduino/Genuino Uno"

C:\Users\Owner\Desktop\DHT\DHTlib\examples\dht22_test\dht22_test.ino: In function 'void setup()':

dht22_test:41: error: 'DHT_LIB_VERSION' was not declared in this scope

Serial.println(DHT_LIB_VERSION);

^

C:\Users\Owner\Desktop\DHT\DHTlib\examples\dht22_test\dht22_test.ino: In function 'void loop()':

dht22_test:52: error: expected primary-expression before '.' token

int chk = DHT.read22(DHT22_PIN);

^

dht22_test:58: error: 'DHTLIB_OK' was not declared in this scope

case DHTLIB_OK:

^

dht22_test:62: error: 'DHTLIB_ERROR_CHECKSUM' was not declared in this scope

case DHTLIB_ERROR_CHECKSUM:

^

dht22_test:66: error: 'DHTLIB_ERROR_TIMEOUT' was not declared in this scope

case DHTLIB_ERROR_TIMEOUT:

^

dht22_test:70: error: 'DHTLIB_ERROR_CONNECT' was not declared in this scope

case DHTLIB_ERROR_CONNECT:

^

dht22_test:74: error: 'DHTLIB_ERROR_ACK_L' was not declared in this scope

case DHTLIB_ERROR_ACK_L:

^

dht22_test:78: error: 'DHTLIB_ERROR_ACK_H' was not declared in this scope

case DHTLIB_ERROR_ACK_H:

^

dht22_test:88: error: expected primary-expression before '.' token

Serial.print(DHT.humidity, 1);

^

dht22_test:90: error: expected primary-expression before '.' token

Serial.print(DHT.temperature, 1);

^

exit status 1
'DHT_LIB_VERSION' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

where is a good place to practice c++ i need to learn this

See:

thank you