Book a Demo

Author Topic: Code engineering not generating include statement for parameter type in C++  (Read 2324 times)

mse

  • EA User
  • **
  • Posts: 308
  • Karma: +1/-0
    • View Profile
When I have a class A that has an operation op(my_domain::my_type) and I generate the code, the code for class A is generated correctly. However, when I try to build the code, the build fails because the type my_domain::my_type cannot be found. This is because it is missing an #include directive to the file that has the type my_domain::my_type. I tried adding <<usage>>, dependency, <<import>>, and none of the dependencies generate the required #include statement. Am I modeling something wrong or do I have to manually add the include to the code itself?