gcc 3.4 problem with std::streampos in lyx 1.3.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux