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

前端 未结 4 2053
粉色の甜心
粉色の甜心 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 17:05

    My guess is that either or have defines for one or more of SUCCESS, OVERFLOW, UNDERFLOW, INCONVERTIBLE, which causes your enum identifiers to be converted to "numeric constants", which in turn would cause the errors that you are seeing.

    You don't see them in the first version because you didn't include those headers.

    Simple way to check: Try renaming the enum identifiers.

提交回复
热议问题