This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Compile Errors After Upgrading to GCC 3.0.2 from GCC 2.95.2
- From: Claudio Bley <bley at cs dot uni-magdeburg dot de>
- To: dannyngo at ca dot ibm dot com
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 22 Nov 2001 15:25:11 +0100
- Subject: Re: Compile Errors After Upgrading to GCC 3.0.2 from GCC 2.95.2
- References: <OF80B6F6A2.804675C9-ON85256B0B.005326BD@torolab.ibm.com>
>>>>> "dannyngo" == dannyngo <dannyngo@ca.ibm.com> writes:
dannyngo> Hi, I have a source file that compiles successfully with
dannyngo> g++ 2.95.2 but not with g++ 3.0.2. I'm running it on
dannyngo> SuSE Linux 7.1. Here's an example of the kind of errors
dannyngo> I'm getting:
dannyngo> g++ -w -Wall -I. -c ggRasterSurfaceTexture.C
dannyngo> ggRasterSurfaceTexture.C: In constructor
dannyngo> `ggRasterSurfaceTexture::ggRasterSurfaceTexture(std::istream&)':
dannyngo> ggRasterSurfaceTexture.C:58: no matching function for
dannyngo> call to `std::basic_istream<char,
dannyngo> std::char_traits<char> >::get(unsigned char&)'
[snip]
dannyngo> Any ideas on the cause of such errors? Thanks for any
dannyngo> help!
dannyngo> Danny Ngo
You can't get a 'unsigned char' out of a 'char' stream directly.
GCC already told you what kind of `get' functions the
std::basic_istream class provides, just select the appropriate one.
HTH
Claudio