gcc 3.4 problem with std::streampos in lyx 1.3.4
Jan Killius
jkillius@arcor.de
Thu Mar 4 15:09:00 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
I have tried to compile lyx 1.3.4 with gcc 3.4 but it did not work. Here is
the error message:
cpp_regex_traits.cpp:875: instantiated from here
cpp_regex_traits.cpp:164: error: no match for 'operator<=' in 'sp <= size'
cpp_regex_traits.cpp:166: error: `class std::streampos' used where a
`std::streamsize' was expected
And here is the code that did cause the error:
template<class charT, class traits>
typename parser_buf<charT, traits>::pos_type
parser_buf<charT, traits>::seekpos(pos_type sp, ::std::ios_base::openmode
which) {
if(which & ::std::ios_base::out)
return pos_type(off_type(-1));
std::ptrdiff_t size = this->egptr() - this->eback();
charT* g = this->eback();
if(sp <= size) // line 164
{
this->setg(g, g + ::std::streamsize(sp), g + // line 166
size); }
return pos_type(off_type(-1));
}
how can the problem be solved ?
- --
Jan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFAR0aT6U6IB8YmOOwRAqLBAJ9yYtzsgycixQAwlY8SdXgLMtZ1QgCffFLY
4n0Kk5w140CPHYt4Fq7svN8=
=Ti2n
-----END PGP SIGNATURE-----
More information about the Gcc-help
mailing list