Book a Demo

Author Topic: C++ code generation on EA 3.60 Bld640  (Read 3694 times)

sheep

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
C++ code generation on EA 3.60 Bld640
« on: September 10, 2003, 06:43:36 am »
 in the C++ implementation file, I can see only a blank
#include""
statement, but no include if the header file. Anyway, if a C++ class is derived by another one, the header file of the base is included correctly in the class header file, but the implementation (.cpp) contains also here a blank
#include""
statement.

Anyone knows what is going on here, the same was on 3.51 perfect!

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: C++ code generation on EA 3.60 Bld640
« Reply #1 on: September 10, 2003, 09:52:23 pm »
Hi sheep,

Thanks for pointing this out.  It seems to occur when you don't explicitely choose a file on generation- it's not inserting the default file name for the header file.  Hence the blank include.

For the moment, try specifying a path when generating, it should put this in.

We'll get this resolved ASAP.

Regards,
Ben

benc

  • EA Administrator
  • EA User
  • *****
  • Posts: 200
  • Karma: +0/-0
    • View Profile
Re: C++ code generation on EA 3.60 Bld640
« Reply #2 on: September 10, 2003, 11:59:03 pm »
This should be resolved in 641.

Regards,
Ben

JayDee

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: C++ code generation on EA 3.60 Bld640
« Reply #3 on: March 25, 2004, 05:50:05 pm »
Hi!  i am using version 4.0 723 and i get the exact same problem when generating code to C++. The header in the cpp file is empty (example:  #include "").

I also get wierd behavior when generating code to C++. Will these issues be fixed?

Thanks  :)  (Great software BTW)
« Last Edit: March 25, 2004, 05:58:56 pm by JayDee »

JayDee

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: C++ code generation on EA 3.60 Bld640
« Reply #4 on: March 25, 2004, 06:04:41 pm »
Hi, here is an update on the problem.

It occurs when i right click on a package and select 'code engineering->Generate source code'. If i generate from here, my header files in the associated .cpp will be empty. If i individually select each class in a diagram and hit Ctrl-G and select a path, the include will be ok.  

How do we get it to work without setting every class one by one (i have a big model). Thanks!!

:)

JayDee

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: C++ code generation on EA 3.60 Bld640
« Reply #5 on: March 25, 2004, 06:48:27 pm »
Hi!

Sorry to disturb again, but i thought i could add more details to the header bug. I my project, if i generate all the source code by selecting a package in the tree view, each .cpp file will have am include clause that point to the same class (one in my project) instead of their own associated header file. These are major bugs that need to be resolved in order to be efficient with C++.

Thanks for the support!