I'm getting an error concerning enum (I think)

前端 未结 4 1982
粉色の甜心
粉色の甜心 2020-12-20 16:41

I\'m testing code remotely on a Solaris machine through SSH Secure Shell using c++. Not sure of what version anything is; Solaris, the c++/compiler, etc. (and don\'t know ho

4条回答
  •  隐瞒了意图╮
    2020-12-20 16:57

    enum STR_TO_INT_STATUS { SUCCESS, OVERFLOW, UNDERFLOW, INCONVERTIBLE };
    

    Perhaps on of the enumerators like SUCCESS was already previously defined. Try using SUCCESS_TEST or something to verify this.

    Edit

    Another way to verify this is to compile the code with the -E option, this shows the preprocessor output. For example: gcc -E main.cpp

提交回复
热议问题