public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc 3.4 problem with std::streampos in lyx 1.3.4
@ 2004-03-04 15:09 Jan Killius
  0 siblings, 0 replies; only message in thread
From: Jan Killius @ 2004-03-04 15:09 UTC (permalink / raw)
  To: gcc-help

-----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-----

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-04 15:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-04 15:09 gcc 3.4 problem with std::streampos in lyx 1.3.4 Jan Killius

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).