Book a Demo

Author Topic: Unexpected symbol  (Read 21925 times)

waleriadavid

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Unexpected symbol
« on: July 30, 2013, 04:30:32 am »
Hi,

Can anyone help me?

I'm trying to generate a class diagram, using reverse engineering, but the following is happening. See the error:

Code: [Select]
There was an error parsing C:\Documents and Settings\Meus documentos\EA_Documentos\Modelos\Environment\class\CSIMEnvFactory.h  on line 11.  Unexpected symbol: ISIMFactory      
You may need to define a language macro.      
There was an error parsing C:\Documents and Settings\Meus documentos\EA_Documentos\Modelos\Environment\class\CSIMEnvironmentModel.h  on line 99.  Unexpected symbol: ISIMModel      
You may need to define a language macro.      
There was an error parsing C:\Documents and Settings\Meus documentos\EA_Documentos\Modelos\Environment\class\CSIMEnvFactory.h  on line 11.  Unexpected symbol: ISIMFactory      
You may need to define a language macro.      
There was an error parsing C:\Documents and Settings\Meus documentos\EA_Documentos\Modelos\Environment\class\CSIMEnvironmentModel.h  on line 99.  Unexpected symbol: ISIMModel      
You may need to define a language macro.      
There was an error parsing C:\Documents and Settings\Meus documentos\EA_Documentos\Modelos\Environment\class\CSIMEnvFactory.h  on line 11.  Unexpected symbol: ISIMFactory      
You may need to define a language macro.      
There was an error parsing C:\Documents and Settings\Meus documentos\EA_Documentos\Modelos\Environment\class\CSIMEnvironmentModel.h  on line 99.  Unexpected symbol: ISIMModel      
You may need to define a language macro.      
There was an error parsing C:\Documents and Settings\Meus documentos\EA_Documentos\Modelos\Environment\class\CSIMEnvironmentModel.h  on line 99.  Unexpected symbol: ISIMModel      
You may need to define a language macro.      
There was an error parsing C:\Documents and Settings\Meus documentos\EA_Documentos\Modelos\Environment\class\CSIMEnvFactory.h  on line 11.  Unexpected symbol: ISIMFactory      
You may need to define a language macro.      
There was an error parsing C:\Documents and Settings\Meus documentos\EA_Documentos\Modelos\Environment\class\CSIMEnvFactory.h  on line 11.  Unexpected symbol: ISIMFactory      
You may need to define a language macro.      
There was an error parsing C:\Documents and Settings\walera.antunes\Meus documentos\EA_Documentos\Modelos\Environment\class\CSIMEnvironmentModel.h  on line 99.  Unexpected symbol: ISIMModel      
You may need to define a language macro.      
There was an error parsing C:\Documents and Settings\Meus documentos\EA_Documentos\Modelos\Environment\class\CSIMEnvFactory.h  on line 11.  Unexpected symbol: ISIMFactory      
You may need to define a language macro.      
There was an error parsing C:\Documents and Settings\Meus documentos\EA_Documentos\Modelos\Environment\class\CSIMEnvironmentModel.h  on line 99.  Unexpected symbol: ISIMModel      
You may need to define a language macro.      

See part of my code: http://paste.ofcode.org/LKUrGHZ9PVmchjB6fBkvrn

What can it be? Can you help me?

Thanks,
« Last Edit: July 30, 2013, 11:59:27 pm by waleriadavid »

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Unexpected symbol
« Reply #1 on: July 30, 2013, 05:03:03 am »
Do as suggested and define the language macro ISIMModel.

q.

waleriadavid

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Unexpected symbol
« Reply #2 on: July 30, 2013, 05:16:19 am »
Hi,

I need define the language macro ISIMModel using EA- Enterprise Architect?

How to do it? I am beginner user of EA

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Unexpected symbol
« Reply #3 on: July 30, 2013, 06:29:09 am »
Open the help
Type "language macro" in the search field
Show the 2nd entry

q.

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Unexpected symbol
« Reply #4 on: July 30, 2013, 07:35:14 am »
See my answer at stack overflow (http://stackoverflow.com/questions/17931668/enterprise-architect-reverse-engineering-unexpected-symbol-error/17931762#17931762), it explains fairly well where you should look into!

HTH
Günther
« Last Edit: July 30, 2013, 07:35:36 am by g.makulik »
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/

waleriadavid

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Unexpected symbol
« Reply #5 on: July 30, 2013, 10:18:50 pm »
Hi,

I defined the language macro to ISIMModel, but now this error occurs. See please.

 
Code: [Select]
There was an error parsing C:\Documents and Settings\Meus documentos\EA_Documentos\Modelos\Environment\class\CSIMEnvFactory.h on line 12. Unexpected symbol: { You may need to define a language macro. There was an error parsing C:\Documents and Settings\Meus documentos\EA_Documentos\Modelos\Environment\class\CSIMEnvironmentModel.h on line 99. Unexpected symbol: , You may need to define a language macro.

What I should do?

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Unexpected symbol
« Reply #6 on: July 31, 2013, 12:43:27 am »
According to what I see in your code you'll need to define a language macro for SIMMDLENVv01_EXPORT, not for ISIMModel (which is your class name!).

waleriadavid

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Unexpected symbol
« Reply #7 on: July 31, 2013, 01:43:19 am »
Hi,

That's what I'm trying to do, but how I do it?
I went to "Settings" -> "Macros Processors ..." and added "SIMMDLENVv01_EXPORT" but the error continue.

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: Unexpected symbol
« Reply #8 on: July 31, 2013, 02:46:24 am »
Quote
Hi,

That's what I'm trying to do, but how I do it?
I went to "Settings" -> "Macros Processors ..." and added "SIMMDLENVv01_EXPORT" but the error continue.
Don't forget to remove any settings you made previously for the wrong symbols!

waleriadavid

  • EA Novice
  • *
  • Posts: 8
  • Karma: +0/-0
    • View Profile
Re: Unexpected symbol
« Reply #9 on: July 31, 2013, 03:08:30 am »
Thank so much!!! It was just that I had forgotten to remove the previous settings ....Thank you very much!!!  :)

g.makulik

  • EA User
  • **
  • Posts: 355
  • Karma: +0/-0
    • View Profile
Re: Unexpected symbol
« Reply #10 on: July 31, 2013, 03:46:56 am »
Quote
Thank so much!!! It was just that I had forgotten to remove the previous settings ....Thank you very much!!!  :)
De nada!
Solved stupid mistakes are the ones that will give you the best achievable learning effect. 8-)

Best regards,
Günther
« Last Edit: July 31, 2013, 03:47:45 am by g.makulik »
Using EA9.3, UML2.3, C++, linux, my brain, http://makulik.github.com/sttcl/