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.

CCS/TMS320F28069: Structure header file redefined error

Part Number: TMS320F28069


Tool/software: Code Composer Studio

Hey,

I am create a one project in this project bundle of C source file and I have create one structure header file in this header file I have structure defined and initialization but we require include a same header file in different source file how is it possible?

Ex

f. h

struct student {

  int max;

  int min;

}stu={.max=10,.min=20};

now I will use this structure in both file like this

#include <a. c>

#include "f. h

Another like

#include <b. c>

#include "f. h

But redefined error how to solve we will compulsory use in both the file ifdef something else I will try pls suggest me another option.