5 years, 7 months ago.

This declaration has no storage class or type specifier "include mbed.h"

Following is my code, help me rectify the below error that I'm getting upon compilation "This declaration has no storage class or type specifier "include mbed.h""

include "mbed.h" Serial pc(USBTX, USBRX); Serial bluetooth(D2,D8); int main(){ int i; int j=10; char c[j]; bluetooth.printf("Ready to recieve data"); pc.printf("Ready to recieve data"); for(i=0,i<j,i++) { c=bluetooth.getc(); bluetooth.printf(" 0x%.2x",c[i]); pc.printf("0x%.2x",c[i]); } }

Be the first to answer this question.