exit status 1 error what i will do

#include <ESP8266WiFi.h>

// replace with your channel's thingspek API key
String apiKey = "SLMSXB6DU4NV3C2L";
const char* ssid = "xxxxxxxxxxxxx";
const char* password = "yyyyyyyyyyyyy";

const char* server = "api.thingspeak.com";
float temp = 0;
int analog = 0;
WiFiClient client;

void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
delay(10);

WiFi.begin(ssid, password);

Serial.println();
Serial.println();
Serial.print("Connecting to");
Serial.println(ssid);
WiFi.begin(ssid, password);

while (WiFi.status() != WL_CONNECTED){
delay(500);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi conected");
}

void loop() {
// put your main code here, to run repeatedly:
analog = analogRead(17);
float temp = analog * 0.2785;
if (client.connect(server,80)){
String postStr = apiKey;
postStr +="&field1=";
postStr += String(temp);
postStr += "\r\n\r\n";

client.print("POST /update HTTP/1.1\n");
client.print("Host: api.thingspeak.com\n");
client.print("Connection: close\n");
client.print("X-THINGSPEAKAPIKEY: "+apiKey+"\n");
client.print("Content-Type: application/x-www-form-urlencoded");
client.print("Content-Length: ");
client.print(postStr.length());
client.print("\n\n");
client.print(postStr);

Serial.print("Temperature");
Serial.print(temp);
Serial.println("% send to Thingspeak");
}
client.stop();

Serial.println("waiting...");
delay(20000);
}

Do you have the ESP8266WiFi installed properly?

.

dont understand.how to add libary for esp 8266

have a read of

and then install