This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

g++ errors


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]