E20, Identifier is undefined

13 Jul 2011


13 Jul 2011

I tried to reproduce your problem with the code you pointed to above and the only warnings/errors I got related to not finding printf() because #include "mbed.h" was missing and the fact that the method was supposed to return a char* but had no return statement.

My version can be found here:

Edit: Removed program that is no longer published.

13 Jul 2011

    printf( "%d\n", sizeof( sS ) );

First up, sS is a private. Try:-

    printf( "%d\n", sizeof( someStruct ) );

Edit: Think sizeof( int ) where int is a type.

someStruct is a type whereas sS is just an instance of that type.


13 Jul 2011