Hi all,

  I tried to use the head file iostream.h(in pds cbc.sclbh.h),but got
error when compiled the source:
(IOSTREAM):101   Definition of function class requires parenthese
(IOSTREAM):101   Syntax error: possible issing '{'?
(IOSTREAM):109   Undeclared identifier goodbit.
(IOSTREAM):109   Undeclared identifier eofbit.
(IOSTREAM):109   Undeclared identifier failbit.
(IOSTREAM):109   Undeclared identifier badbit.
(IOSTREAM):110   Undeclared identifier hardfail.
(IOSTREAM):110   Syntax error: possible missing ';' or ','?

  Here are some source code of iostream.h in my system where the error
happened:
000101 class streambuf ;
000102 class ostream ;
000103
000104
000105 class IC_EXPORTI ios {
000106 public: /* Some enums are declared in ios to avoid pollution of
000107    * global namespace
000108    */
000109   enum io_state { goodbit=0, eofbit=1, failbit=2, badbit=4,
000110         hardfail=0200};
000111         /* hard fail can be set and reset internally,
000112          * but not via public function */
000113   enum open_mode  { in=1, out=2, ate=4, app=010, trunc=020,
000114         nocreate=040, noreplace=0100, binary=0200, bin=0200} ;

  It looks like there are syntax error in line 101,102,109,113,such as the
non-defined variable goodbit.What do you think about it? Has someone used
it before?

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to