Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: kwokwong on August 19, 2004, 07:25:52 am

Title: Adding newline at end of file
Post by: kwokwong on August 19, 2004, 07:25:52 am
We're using EA 4.0 for generation of C++ programs.
The generated header files (*.h) does not contain a newline at end of file.
Our compiler (gcc) complains about that.
Can anyone help to configure EA to generate a newline at end of a header file?

Note: we do not want a CRLF at each  line.
Title: Re: Adding newline at end of file
Post by: KP on August 19, 2004, 03:53:21 pm
Quote
The generated header files (*.h) does not contain a newline at end of file.
That was fixed at build 733. Try downloading the new version.

Quote
Note: we do not want a CRLF at each  line.
There is an option on the "Tools / Options / Generation" dialog to switch on CR & LF. Uncheck the checkbox.

HTH
Title: Re: Adding newline at end of file
Post by: kwokwong on August 20, 2004, 01:13:54 am
Quote
That was fixed at build 733. Try downloading the new version.

There is an option on the "Tools / Options / Generation" dialog to switch on CR & LF. Uncheck the checkbox.

HTH


I just downloaded the latest version (build 734). But the problem (no newline at end of header file) still remains.
Or should I execute any patch ?
Title: Re: Adding newline at end of file
Post by: kwokwong on August 20, 2004, 01:31:03 am
Quote

I just downloaded the latest version (build 734). But the problem (no newline at end of header file) still remains.
Or should I execute any patch ?


Problem is fixed now.  
The fix did not work at once because I have modified some code templates :) :). After restoring these to its' default content, everything works well.