Wang
I suspect you are compiling in C when you need to compile as C++. iostream.h
is a C++ library component.
HTH
Julian
>
> 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?
***** Matchcode International awarded the "Best International Product" by
Direct Marketing Business at the IDMF 2003 *****
*******************************************************************
This e-mail is confidential and intended solely for the use of the individual
to whom it was addressed. If you are not the intended recipient, you are hereby
notified that any dissemination, distribution or copying of this message is
strictly prohibited. Please delete any copies you may have, on any computer.
Any views expressed in this message are those of the individual sender and do
not necessarily represent the views of Capscan Ltd and/or its subsidiaries.
Please be aware that Internet communications are not secure.
Capscan Limited
Head Office: Capscan Limited Grand Union House 20 Kentish Town Road London
NW1 9BB
Registered in England no. 1183941
*******************************************************************
----------------------------------------------------------------------
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