Sparkfun Weather Meter Kit

Print Screen of first few lines tells me nothing.
From my point of view, the WeatherMeters.cpp file is missing in your project and the main.cpp file must contain content like below (only example, nothing real)

#include "mbed.h"
#include "WeatherMeters.h"

WeatherMeters station(A0, A1, A2, Weather_auto); // I do not know your pins so I use fake pins
// rest of globals

int main() {
    printf("Mbed WeatherMeters example\r\n");
    // do something before loop
    while(1){
       // do something in loop
    }
}

I suppose you do not have int main() in your main.cpp and that is the reason why your project can not be compiled.

BR, Jan

So looks like the code example is incorrect and there is no other sample code for the sparkfun weather meter kit for MBED .As i tried looking online

What example? I do not see any example

You linked only the library - WeatherMeters - Weather Meters (Sparkfun) http://mbed.org/users/… | Mbed
So you need to import it to your project again and then use it in your main.cpp with your own usage.

According to - Wetterstation - Dieses Programm verarbeitet die einzelnen Messwer… | Mbed you probably need something like this.

#include "mbed.h"
#include "WeatherMeters.h"

WeatherMeters station(A0, A1, A2, Weather_auto); // change to your pins

int main() {
    printf("Mbed WeatherMeters example\r\n");
    // do something before loop
    while(1){
        printf("Windspeed: %3.2f\r\n",station.get_windspeed());
        printf("Windvane: %3.2f °\r\n",station.get_windvane());
        printf("Raingaug %3.2f\r\n",station.get_raingauge());
        thread_sleep_for(1000);
    }
}

Sorry, but it seems like you not understand basics.

BR, Jan