It looks like you are not linking to the mbed library. Also your main.cpp looks different from the mbed one I get:
#include "mbed.h"
DigitalOut myled(LED1);
int main() {
while(1) {
myled = 1; // LED is ON
wait(0.2); // 200 ms
myled = 0; // LED is OFF
wait(1.0); // 1 sec
}
}
I find that the latest version of this project, created on mbed and exported for emblocks, compiles and links without errors in emblocks 2.30 even with the "wrap" linker options present. I only needed to remove that option for an older exported project which linked against some older files.
I suggest you start again, creating a new version of the blinky project for your hardware on mbed and export it again.
When i am compiling file offline the emblocks IDE is showing following error messages
.objs\main.o||In function `DigitalOut':| C:\Users\Shuzon\Desktop\mbed_blinky\mbed\DigitalOut.h:49||undefined reference to `gpio_init_out'| c:\program files (x86)\emblocks\2.30\share\em_armgcc\bin\..\lib\gcc\arm-none-eabi\4.7.3\..\..\..\..\arm-none-eabi\lib\armv7-m\crt0.o||In function `_start':| (.text+0x4a)||undefined reference to `wrap_main'|
undefined reference to `gpio_init_out' and undefined reference to `wrap_main' any idea how to solve the problem ??