Hello Phil,

You wrote:
>"Note:
>#pragma mapinc will be phased out in future releases. It
>is recommended that you use the GENCSRC utility"

Appendix B in the ILE C/C++ Programmer's Guide explains this.  BUT!!!!

The real issue is why is this support being removed?  #pragma mapinc is a
useful and natural way for AS/400 C programmers to use externally described
files.  However, in the effort to reduce costs by using a common AIX/OS/400
C++ compiler we on the AS/400 side lose functionality.

Providing a tool to generate an include file based on a database file is not
an acceptable alternative.

The advantage to #pragma mapinc is that the file definition comes from the
database at compile time.  GENCSRC requires that I as the programmer
remember to re-generate the include file when the database file changes.
Using yet another tool (e.g., make, to hide the generation of the include
file is simply a kludge).  Thus AS/400 programmers move back a step simply
because other platforms don't have externally described files. Bah!

We should be complaining to IBM about this approach.

Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists
   http://www.flybynight.com.au/

   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175   mailto: shc@flybynight.com.au   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].