collect2: error: ld returned 1 exit status exit status 1

// SPI for arc32 - Version: Latest
#include <SPI.h>
#include <Ethernet.h>

byte mac[] = {0x38, 0x60, 0x77, 0x1B, 0xD6, 0xC5};

char server[] = "www.google.co.za";

IPAddress ip(192, 168, 0, 150);

EthernetClient client;

void setup() {
Serial.begin(9600);

if (Ethernet.begin(mac) == 0) {
Serial.println ("Failed to configure via DHCP");
Ethernet.begin(mac, ip);
}
delay(1000);
Serial.println("connecting....");

if (client.connect(server, 80)) {
Serial.println ("connected");

client.println("GET /search?q=arduino HTTP/1.1");
client.println("Host: www.google.co.za");
client.println("Connection: Close");
client.println();
}
else {
Serial.println("Connection failed");
}
}

Post your error message.
Please remember to use code tags when posting code

sensorvice:
/tmp/ccp30982.ltrans0.ltrans.o: In function `main':

/home/builder/.arduino15/packages/arduino/hardware/avr/1.8.2/cores/arduino/main.cpp:46: undefined reference to `loop'

You forgot to define the loop function.

Pieter

PieterP:
You forgot to define the loop function.

Pieter

Thank you very much even though Im using any loop I added a function at the bottom of the listing and I was able to upload my sketch to my board.

void loop(){}