Hi xeddiex,
thanks for your reply. I am aware of the #define option. I guess my problem needs a bit more specification:
My code looks more simular to the following:
Code:
#define BUFSIZE(x,y) ((x)+(y))
void main(){
const int x = 2;
const int y = 3;
const int bufsize = BUFSIZE(x, y);
int splitbuf[bufsize];
}
It will work in VC6 if I remember to declare all the integers as const, but CCS ...buhuu... still sees 'bufsize' as a variable.
Provided this new information, does anyone have an idea how to make my bufsize constant?
Best regards, Esben.