Compiler Error 291
Possibly while creating an object, the name was not specified
#include "mbed.h" //problem in the following line.. Serial (USBTX, USBRX); //assign a name, ex: Serial pc(USBTX, USBRX); int main() { for (;;) { wait(1); pc.printf("Hello World\n\r\a"); } }
When creating a new class, make sure that all objects are specified and initialized properly in the constructor, e.g.
#include "mbed.h" class Foo{ public: Foo(): _pc(USBTX,USBRX){}; private: Serial _pc; };