Book a Demo

Author Topic: C-Code generation "extern" missing  (Read 3034 times)

MREA

  • EA User
  • **
  • Posts: 72
  • Karma: +0/-0
    • View Profile
C-Code generation "extern" missing
« on: November 09, 2012, 12:01:07 am »
hi
in C-code generation there is the Option extern missing.

e.g an extern attr. ; can't be deklared!
Support- Languages: German, English, French

Makulik

  • EA User
  • **
  • Posts: 400
  • Karma: +0/-0
    • View Profile
Re: C-Code generation "extern" missing
« Reply #1 on: November 09, 2012, 01:38:22 am »
Looks like it's really missing (for C++ also, where it might be to be used in rare cases). Strange enough that the 'extern' keyword is supported for C# though.

I found this in this document, which I think it will be useful for you too:
http://www.google.de/url?sa=t&rct=j&q=&esrc=s&source=web&cd=3&cad=rja&ved=0CD4QFjAC&url=http%3A%2F%2Fwww.sparxsystems.com.au%2Fdownloads%2Fresources%2Fbooklets%2Fuml_code_engineering.pdf&ei=8cCbUICuM9CUswaNioDQDA&usg=AFQjCNF1hS15vhe6OHNgNyszF8n8m_rsoQ&sig2=thrXxuKYCPFtaOfUuznxhg

Anyway you might do the same as it's done for C# and use a tagged value to mark attributes as 'extern' and take this in account when generating code. After importing code you'll need to set these manually though.

If you prefer to report a bug to Sparx, you'll need to send them an official bug report (see http://www.sparxsystems.com/registered/reg_bug_report.html).

HTH
Günther