* Compile Errors After Upgrading to GCC 3.0.2 from GCC 2.95.2
@ 2001-11-12 15:41 dannyngo
2001-11-15 5:07 ` Claudio Bley
0 siblings, 1 reply; 2+ messages in thread
From: dannyngo @ 2001-11-12 15:41 UTC (permalink / raw)
To: gcc-help
Hi,
I have a source file that compiles successfully with g++ 2.95.2 but not
with
g++ 3.0.2. I'm running it on SuSE Linux 7.1. Here's an example of the
kind
of errors I'm getting:
g++ -w -Wall -I. -c ggRasterSurfaceTexture.C
ggRasterSurfaceTexture.C: In constructor
`ggRasterSurfaceTexture::ggRasterSurfaceTexture(std::istream&)':
ggRasterSurfaceTexture.C:58: no matching function for call to
`std::basic_istream<char, std::char_traits<char> >::get(unsigned char&)'
/usr/local/include/g++-v3/bits/istream.tcc:471: candidates are: typename
_Traits::int_type std::basic_istream<_CharT, _Traits>::get() [with
_CharT
=
char, _Traits = std::char_traits<char>]
/usr/local/include/g++-v3/bits/istream.tcc:503:
std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
_Traits>::get(_CharT&) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/local/include/g++-v3/bits/istream.tcc:537:
std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
_Traits>::get(_CharT*, int, _CharT) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/local/include/g++-v3/bits/std_istream.h:157:
std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
_Traits>::get(_CharT*, int) [with _CharT = char, _Traits =
std::char_traits<char>]
/usr/local/include/g++-v3/bits/istream.tcc:583:
std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
_Traits>::get(std::basic_streambuf<_CharT, _Traits>&, _CharT) [with
_CharT =
char, _Traits = std::char_traits<char>]
/usr/local/include/g++-v3/bits/std_istream.h:164:
std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT,
_Traits>::get(std::basic_streambuf<_CharT, _Traits>&) [with _CharT =
char,
_Traits = std::char_traits<char>]
Any ideas on the cause of such errors? Thanks for any help!
Danny Ngo
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Compile Errors After Upgrading to GCC 3.0.2 from GCC 2.95.2
2001-11-12 15:41 Compile Errors After Upgrading to GCC 3.0.2 from GCC 2.95.2 dannyngo
@ 2001-11-15 5:07 ` Claudio Bley
0 siblings, 0 replies; 2+ messages in thread
From: Claudio Bley @ 2001-11-15 5:07 UTC (permalink / raw)
To: dannyngo; +Cc: gcc-help
>>>>> "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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-11-22 14:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-12 15:41 Compile Errors After Upgrading to GCC 3.0.2 from GCC 2.95.2 dannyngo
2001-11-15 5:07 ` Claudio Bley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).