Hi,
I have a question about changing a variable to a constant.
My problem arrises using Texas Instruments' CCS3.1
compiler. The following boiled down code builds finely in Microsofts VC6, but not in CCS:
In CCS I get the following error message:Code:void main(){ const int bufsize = 2; int splitbuf[bufsize]; //line 5. }
"arrTest.c", line 5: error: expression must have a constant value
Does anyone have a suggestion for a workaround, that will make it possible for me to change a variable into a constant so my program will compile in CCS?
Best regards, Esben.



LinkBack URL
About LinkBacks


