I am trying compile an application which showing the error in the following line
enum ROUTE_STATE
{
ROUTE_STATE_DOWN = 0,
ROUTE_STATE_UP = 1,
ROUTE_STATE_STANDBY = 2,
ROUTE_STATE_DISABLED= 4
};
There are four error messages, respectively
enum ": missing tag name
Syntax error: "constant
Syntax error: missing ";" (before "{")
"{" : missing function title (is it an older form table?)
which is in following code
namespace ECON
{
namespace FDC
{
enum ROUTE_TYPE
{
ROUTE_TYPE_RX = 0,
ROUTE_TYPE_TX = 1
};
enum ROUTE_STATE
{
ROUTE_STATE_DOWN = 0,
ROUTE_STATE_UP = 1,
ROUTE_STATE_STANDBY = 2,
ROUTE_STATE_FREE = 3,
ROUTE_STATE_DISABLED = 4
};
}
}
The problem could not be located based on four error messages,Ask for help,thanks