Book a Demo

Author Topic: Problem with enum class who are derived from types  (Read 2762 times)

JonnyTaylor

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Problem with enum class who are derived from types
« on: October 08, 2014, 05:34:24 pm »
Hello,
we working with C++ and try to reverse engineering some classes. I have the problem that EA can not import enum classes who are derived from other types.
A simple example:

enum class ErrorCommand : short
{
    UNKNOWN                  = 0x00,
    PRINT_ALL                  = 0x01,
    PRINT_LAST                = 0x02,
    LAST = PRINT_LAST
};


The error message during the reverse enginerring process is:
... --importing C:\...\ErrorEnums.h
There was an error parsing C:\...\ErrorEnums.h on line 14. Unexpected symbol:short
You ma need to define a language macro ...


Can someone help me?
We work with EA10.0.1009
« Last Edit: October 08, 2014, 10:30:21 pm by JonnyTaylor »

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Problem with enum class who are derived from t
« Reply #1 on: October 09, 2014, 09:16:15 am »
Looks like you're trying to import C++11.

We are working on support for the language extensions such as this added to the specification, but they aren't available in the current version of EA.