Hi Experts,
I have a piece of code in one header file as follows.
#pragma once
const unsigned int RATE = 100;
const unsigned int TIMEOUT = 20;
const unsigned int REPORT = 1000;
enum STATUS_TYPE1 {X = 0, Y = 1, Z = 2, A = 3};
enum STATUS_TYPE2 {D = 0, E = 1, F = 2, G = 3, H = 4};
But when I tried to build the project I am getting the following error.
"syntax error : missing '}' before 'constant'"
"syntax error : missing ';' before 'constant'"
"syntax error : 'constant'"
"missing ';' before '}'"
"syntax error : '}'"
All these errors are pointing to the same line(enum STATUS_TYPE2 {D = 0, E = 1, F = 2, G = 3, H = 4};)
It is killing my time.. Can any one help me on this?
Note: Actually I am exporting the above code from VC6 to VC8.