This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

#102 "Uint16" has already been declared in the current scope

Other Parts Discussed in Thread: CONTROLSUITE, TMS320F28335

Dear all,

My application is having the following error during compilation process:

#102 "Uint16" has already been declared in the current scope

I searched trought the code and found that it is defined to times.

First one in the "xdc/std.h":

typedef xdc_UInt16      UInt16;

Second one in the "DSP2833x_Device.h":

typedef unsigned int       Uint16;

"xdc/std.h" is part of the xdctools and "DSP2833x_Device.h" is from the examples in the ControlSuite for TMS320F28335. I need to include both headers but it is not possible to compile then. I guess that it is because I'm using a newer compiler version than the used in the example. I tried several thinks like commenting the typedef in "DSP2833x_Device.h" but then the compiler says that "Uint16" is not defined.

Does someone have anys idea for solving that?

Thanks in advance,

Aitor