I got a strange error

19 Apr 2011

Hello mbed community.

I got a strange error from the compiler.( screen shot is attached ) Someone has a suggestion of the causes of this error?

Thank you in advance /media/uploads/affatatiej/error_compilador_mbed.jpg

19 Apr 2011

Hi Emanuel,

It basically means that a declaration is probably miss-formed, as it doesn't declare anything. So for example, something like the following would give that error:

int;

It is obviously unlikely that LPC17xx.h has an error like this, so you can then suspect it is something impacting it. If you look at line 795 of LPC17xx.h, it is:

__IO uint32_t TEST;

So that suggests to me that somewhere before you include LPC17xx.h somewhere, there is some code that looks like:

#define TEST

or alike. i.e. defining TEST to be nothing, which impacts the definition in LPC17xx.h as it replaces the structure element name with nothing, which gives that error. If it is not that, it is probably something similar.

Hope that helps,

Simon

19 Apr 2011

Thanks Simon.

You were right.

One million thanks.