Book a Demo

Author Topic: Issue when generating c code  (Read 3288 times)

christoph75

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Issue when generating c code
« on: March 04, 2011, 06:19:24 am »
Hello,

I'm observing a strange issue when generating C code from a class model (with object oriented support turned on). First time everything looks fine:

typedef struct MyStruct
{
      int member;
} MyStruct;

After synchronizing with code, the stereotype struct is added to the class and some typedef / typeSynonyms tagged values are created. When forward generating again, the struct appears two times in the header file:

typedef struct MyStruct
{
      int member;
} MyStruct;

typedef struct MyStruct
{
      int member;
} MyStruct;

Is this a known issue, and if so are there any workarounds known?

Thanks in advance!