Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
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]); } }