with gcc-arm-none-eabi-7-2017-q4-major the default typedef of time_t is "long long int". older releases typedef time_t as "long int". mbed lib cannot handle this correctly This applies to exported projects as "GCC (ARM-Embedded)"

Dependencies:   mbed

Fork of USBSerial_HelloWorld by Samuel Mokrani

Revision:
8:90f8322a65f8
Parent:
7:5e693654d5b4
Child:
9:d88699a0905a
--- a/main.cpp	Sun Oct 14 13:03:13 2012 +0000
+++ b/main.cpp	Thu Dec 20 17:09:19 2012 +0000
@@ -3,12 +3,15 @@
  
 //Virtual serial port over USB
 USBSerial serial;
+DigitalOut l1(LED1);
  
 int main(void) {
- 
+    int i = 0;
+    
     while(1)
     {
-        serial.printf("I am a virtual serial port\r\n");
-        wait(1);
+        serial.printf("I am a virtual serial port: %d\r\n", i++);
+        wait(0.1);
+        l1 = !l1;
     }
 }
\ No newline at end of file