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/MSP430G2553: Compiler or linker problem code not build

Part Number: MSP430G2553

Tool/software: Code Composer Studio

Hello,

I have created one project in this project I create two file one header file and one is C file name are "struct.h" and "menu.c" I create structure in header file like this

E

/*
* Struct.h
*
* Created on: Aug 26, 2019
* Author: YASH
*/

#ifndef STRUCT_H_
#define STRUCT_H_

#endif /* STRUCT_H_ */

#define macro 2
#define data 2
struct student{
const unsigned int roll;
const unsigned int max;

struct school{
const unsigned int min;
const unsigned int rf;
}uni;
}stu[macro]={
                      {.roll=10,.max=20,{.min=50,.rf=75}},
                      {.roll=30,.max=30,{.min=85,.rf=78}}
};

struct group{
const unsigned int a;
const unsigned int b;
}grp[data]={
                   {.a=45,.b=44},
                   {.a=25,.b=87}
};

Now, we will access this structure in my user define  "C" file

#include "Struct.h"
int i=0;
unsigned const int a;
a=stu[grp[i].a].uni.min

but the problem on a build error 

Description Resource Path Location Type
#28 expression must have a constant value sst.c /Structure line 10 C/C++ Problem

This is demo code but one of my big application code 1000 line structure but this type of access and show error in RAM related ".abs" related.

what exactly problem pls suggest me? 

the second question is const unsigned int we initialize in header flle in structure. 

**Attention** This is a public forum