Book a Demo

Author Topic: Errors Reverse Engineering C++ code  (Read 5813 times)

sbarnesx

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Errors Reverse Engineering C++ code
« on: February 21, 2006, 05:23:38 am »
I am reverse engineering some C++ code. It is older C/C++ code that needs to be documented. I am getting the following error for several classes: Unexpected Symbol. Here is an example of code that throws that error:

class MYPROG_DECL StateIndexKey : public CacheIndexKey

This pattern always causes EA to throw the error.

Any help would be very helpful.

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Errors Reverse Engineering C++ code
« Reply #1 on: February 21, 2006, 01:08:52 pm »
Look at http://www.sparxsystems.com.au/EAUserGuide/index.html?languagemacros.htm and define MYPROG_DECL as a macro under Settings | Preprocessor macros.

sbarnesx

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Errors Reverse Engineering C++ code
« Reply #2 on: February 22, 2006, 01:57:58 pm »
Thank you for the help. I actually ended up adding 3 missing macros. Once I did that, everything imported perfectly!