Error compiling code for board Arduino/Genuino Uno

I just finished my code and when I was just going to upload it to my Arduino Uno I got this message... "exit status 1 Error compiling code for board Arduino/Genuino Uno". I can't see anything wrong with my code, maybe you can?

Here is my code-

/* A sketch where it uses the DHT-22 sensor with an Arduino UNO
    to detect the humidity and temperature, and then
    displays it on a 128 x 64 IC2 OLED Screen.
    By: Owen Z. // Date: 1/5/2018 // Language: C++ */

//#################//
//#####Define######//
//#################//

//Libraries
#include "DHT.h";
#include "U8glib.h";

// Constants
#define DHTPIN 2     // This tells what pin we're connected to.
#define DHTTYPE DHT22     // This defines the DHT-22 sensor (AM2302).
U8GLIB_SSD1306_128X64 u8g(U8G_I2C_OPT_NONE | U8G_I2C_OPT_DEV_0);     // Helps display data.
DHT dht(DHTPIN, DHTTYPE);     // This initalizes the DHT sensor for arduino.

// Variables
int chk;     // This creats a interger.
float hum;     //This stores the humidity value.
float temp;     //This stores the temperature value.

//#################//
//######Font#######//
//#################//

void u8g_prepare(void)
{
  u8g.setFont(u8g_font_6x10);     // Sets the font.
}

//#################//
//######Setup######//
//#################//

// Starts up the display.
void intro(uint8_t a)
{
  u8g.setFont(u8g_font_unifont);     // Prints message in chosen font.
  u8g.drawStr(0, 19, "Current");     // Displays text line one.
  u8g.drawStr(0, 38, "Temperature:");     // Displays text line two.
  u8g.drawStr(0, 57, "null");     // Shows no current temperature.
}

//#################//
//######State######//
//#################//

uint8_t draw_state = 0;

//#################//
//#####Reading#####//
//#################//

void setup(void)
{
  Serial.begin(9600);     // Starts signal at 9600 Baud.
  dht.begin();     // Tells sensor to begin collecting data.
#if defined(ARDUINO)     // Defines the Arduino.
  pinMode(13, OUTPUT);     // Sets pin 13 to output mode.
  digitalWrite(13, HIGH);     // Sets pin 13 to high mode.
#endif
}

//#################//
//#####Writing#####//
//#################//

void loop()
{
  //Waits a second before reading data.
  delay(1000);
  hum = 0;
  temp = 0;

  // This reads and defines the data to store it.
  int hum = dht.readHumidity();     // Defines "hum" as humidity.
  int temp = dht.readTemperature();     // Defines "temp" as temperature.

  //Print temperature and humidity values to serial monitor.
  Serial.print(" Humidity- ");     // Prints the humidity.
  Serial.print(hum);
  Serial.print(" %, Temp- ");     // Prints the temperature.
  Serial.print(temp);
  Serial.println(" Celsius ");     // Unit the temperature is displayed in.

  // Prints temprature to a 128 x 64 OLED screen.
  u8g.drawStr(0, 19, "Current");     // Displays line one.
  u8g.drawStr(0, 38, "Temperature:");     // Displays line two.
  u8g.print(temp);     // Displays the temperature variable.

  // Waits one second.
  delay(1000);
}

Thanks

Actually it said a lot more than that. Posting "exit status 1 Error compiling code for board Arduino/Genuino Uno" is extremely unhelpful. When there is an error you need to take some time to read the output in the black console window at the bottom of the Arduino IDE window. If you don't understand what it's telling you then use your Google skills to find the answer. You have a tremendous amount of information available to you if you just make a little effort. I see that every time you have an error you immediately come running to the Arduino forum for help. You need to start taking initiative on your own.

Hi,
Your code compiled for me, so the only problem could be that you do not have the libraries installed properly.

IDE 1.8.5 WIN7

Tom... :slight_smile:

Thank you Tom, that worked.