Author Topic: Unwanted/mysterious includes in c++ code generation  (Read 1045 times)

Thomas Arnbjerg

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Unwanted/mysterious includes in c++ code generation
« on: June 21, 2017, 06:38:05 pm »
Hi all,

I'm struggling with an EA code generation problem, which drives me nuts. For some reason the code generated by EA13 includes extra include files in the implementation and I simply cannot see where they come from:

1) They are not in the field 'Header(s)' in the code generation dialog (in the code generated the extra headers are added after contents of this field so the source must come after %ImportSectionImpl%).
2) They are not in the code generation templates - If I insert a trace comment  at the end of the field 'Header(s)' in code generation and immediately after %ImportSectionImpl% in template 'File Impl'  the extra headers are BETWEEN the two comments!!

Any suggestions?

Oliver F.

  • EA User
  • **
  • Posts: 573
  • Karma: +2/-1
  • Arenīt we all in the model business ?
    • View Profile
    • Karl Storz homepage
Re: Unwanted/mysterious includes in c++ code generation
« Reply #1 on: June 21, 2017, 10:21:51 pm »
Somewhere rings a bell from some time long ago but I currently can not remember exactly what it was.
Which extra includes are you seeing in the code?`

Oliver

Thomas Arnbjerg

  • EA Novice
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Re: Unwanted/mysterious includes in c++ code generation
« Reply #2 on: June 21, 2017, 11:01:54 pm »
Three examples:

1)
#include <iostream>
#include "core/PlatformFacade.h"

- They (coincidentally) match the first and last headers in the 'Header(s)' field.

2)
#include "EventbusModel\src\autogenerated\SystemInterface\CloudFacadeInterface.h"
- This header matches an implemented interface by the class - unfortunately with Windows paths (I'm on a Linux device).

3)
#include "EventbusModel\src\autogenerated\DataStructureClasses\DeviceDataImplementation.h"
- This header relates to a member type in the class.