This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
g++ errors
- From: "Nathan ." <snmptoddler at hotmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 02 Oct 2002 21:43:10 +0000
- Subject: g++ errors
- Bcc:
Hello all,
I'm getting the following errors while compiling a file "msg.cc"
The files istrstream.h and streambuf.h are standard files.
============Errors=======================================
msg.cc: In method `istrstream::istrstream(const istrstream &)':
/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.3/../../../../include/g++-3/streambuf.h:128:
`ios::ios(const ios &)' is private
msg.cc:802: within this context
==========================================================
What is wrong with the line 802 in msg.cc
===============msg.cc======================
IpAddr::IpAddr(char *ipString)
{
#ifndef GNU
802: istrstream is = ipString;
char c;
int num;
for(int i = 0; i < 4; i++)
{
is >> num;
_ip[i] = num;
is >> c;
}
#endif
}
=================================================
==========fstreambuf.h===========================
class ios : public _ios_fields {
ios& operator=(ios&); /* Not allowed! */
128: ios (const ios&); /* Not allowed! */
==================================================
Please advise.
Thanks
-Nathan
_________________________________________________________________
Join the world’s largest e-mail service with MSN Hotmail.
http://www.hotmail.com