Book a Demo

Author Topic: Enterprise Architect 15.1 not generating headers (.h) for C  (Read 20943 times)

Javi

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Enterprise Architect 15.1 not generating headers (.h) for C
« on: February 17, 2021, 07:10:00 pm »
Hello,

I have been using EA for a month or so, so my level with the tool is still as newbie...

I have designed certain class diagrams with their respective methods/functions, my next step was to generate the associated code for those functions and here is where the issue starts.

I have noticed that the .c is properly created, functions declarations are correctly generated, however the header file .h doesn't contain anything except some ifdef as depicted below. Why are the headers not included and how can I make them to appear?

Code: [Select]
#if !defined(EA_F904FF56_7FDF_4298_A9F7_EF93EF64426F__INCLUDED_)
#define EA_F904FF56_7FDF_4298_A9F7_EF93EF64426F__INCLUDED_


#ifdef __cplusplus
extern "C" {
#endif



#ifdef __cplusplus
}
#endif


#endif /*!defined(EA_F904FF56_7FDF_4298_A9F7_EF93EF64426F__INCLUDED_)*/
 

Thanks in advance!

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Enterprise Architect 15.1 not generating headers (.h) for C
« Reply #1 on: February 18, 2021, 08:42:50 am »
Are the functions private? From memory only public functions go into the header.

Javi

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Enterprise Architect 15.1 not generating headers (.h) for C
« Reply #2 on: February 19, 2021, 09:40:20 pm »
Are the functions private? From memory only public functions go into the header.

Hello EVe thanks for replying,

Yes they are set as private, I will try setting them public

Thanks


Javi

  • EA Novice
  • *
  • Posts: 5
  • Karma: +0/-0
    • View Profile
Re: Enterprise Architect 15.1 not generating headers (.h) for C
« Reply #3 on: February 20, 2021, 02:20:44 am »
Are the functions private? From memory only public functions go into the header.

Hi Eve,

I have tried with public functions Visibility = Public ( they have the plus icon next to the function) and the header files is still empty, what more can I try/do?

mse

  • EA User
  • **
  • Posts: 308
  • Karma: +1/-0
    • View Profile
Re: Enterprise Architect 15.1 not generating headers (.h) for C
« Reply #4 on: March 06, 2026, 07:47:22 pm »
Have you checked the language field under Project in the properties section to make sure it is set to C?