On Thu, Oct 02, 2003 at 05:05:30PM +0200, Lars Gullik Bjønnes spake thusly:
> 
> Martin Vermeer <[EMAIL PROTECTED]> writes:
>   
> | Index: src/lyx_main.C
> | ===================================================================
> | RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyx_main.C,v
> | retrieving revision 1.177
> | diff -u -p -r1.177 lyx_main.C
> | --- src/lyx_main.C  26 Sep 2003 14:27:19 -0000      1.177
> | +++ src/lyx_main.C  2 Oct 2003 13:49:12 -0000
> | @@ -76,12 +76,13 @@ using std::endl;
> |  
> |  using std::vector;
> |  
> | +#if 0
> |  #ifndef CXX_GLOBAL_CSTD
> |  using std::exit;
> |  using std::signal;
> |  using std::system;
> |  #endif
> | -
> | +#endif
> |  
> |  extern void QuitLyX();
> 
> We need to find out why this is needed, it shouldn't be.

It isn't. Cruft from earlier experimentation.
   
...
   
> | Index: src/mathed/math_streamstr.C
> | ===================================================================
> | RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/mathed/math_streamstr.C,v
> | retrieving revision 1.17
> | diff -u -p -r1.17 math_streamstr.C
> | --- src/mathed/math_streamstr.C     5 Sep 2003 16:18:57 -0000       1.17
> | +++ src/mathed/math_streamstr.C     2 Oct 2003 13:49:14 -0000
> | @@ -12,7 +12,7 @@
> |  
> |  #include "math_streamstr.h"
> |  #include "math_mathmlstream.h"
> | -
> | +#include "support/std_ostream.h"
> |  
> |  WriteStream & operator<<(WriteStream & ws, string const & s)
> |  {
> 
> What are the errors when std_ostream.h are left out?
> but this change is ok.

Attached.
 
> | Index: src/support/lstrings.C
> | ===================================================================
> | RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/support/lstrings.C,v
> | retrieving revision 1.80
> | diff -u -p -r1.80 lstrings.C
> | --- src/support/lstrings.C  25 Sep 2003 23:01:43 -0000      1.80
> | +++ src/support/lstrings.C  2 Oct 2003 13:49:14 -0000
> | @@ -20,6 +20,7 @@
> |  #include "tostr.h"
> |  
> |  #include <boost/tokenizer.hpp>
> | +#include <boost/assert.hpp>
> |  
> |  #include <algorithm>
> 
> what are the errors? (and why do we not see them with gcc 3.x?)

Attached.

What is the path through which lstrings.C gets assert.hpp included in
the absence of this #include? (Apparently it does; gcc3 compiles this
also for me without it.)
 
> but ok.  
> 
> -- 
>       Lgb

- Martin

/home/mv/STLport-4.5.3/stlport/stl/_string_io.c: In function `class 
_STL::basic_ostream<char,_STL::char_traits<char> > & _STL::operator <<<char, 
_STL::char_traits<char>, _STL::allocator<char> 
>(_STL::basic_ostream<char,_STL::char_traits<char> > &, const 
_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > &)':
math_streamstr.C:26:   instantiated from here
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c:45: invalid use of undefined type 
`class _STL::basic_ostream<char,_STL::char_traits<char> >'
/home/mv/STLport-4.5.3/stlport/stl/_iosfwd.h:39: forward declaration of `class 
_STL::basic_ostream<char,_STL::char_traits<char> >'
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c:45: assignment (not initialization) in 
declaration
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c:48: `__sentry' undeclared (first use 
this function)
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c:48: (Each undeclared identifier is 
reported only once
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c:48: for each function it appears in.)
math_streamstr.C:26:   instantiated from here
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c:52: incomplete type 
`_STL::basic_ostream<char,_STL::char_traits<char> >' does not have member `left'
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c:52: invalid use of undefined type 
`class _STL::basic_ostream<char,_STL::char_traits<char> >'
/home/mv/STLport-4.5.3/stlport/stl/_iosfwd.h:39: forward declaration of `class 
_STL::basic_ostream<char,_STL::char_traits<char> >'
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c:53: invalid use of undefined type 
`class _STL::basic_ostream<char,_STL::char_traits<char> >'
/home/mv/STLport-4.5.3/stlport/stl/_iosfwd.h:39: forward declaration of `class 
_STL::basic_ostream<char,_STL::char_traits<char> >'
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c:54: invalid use of undefined type 
`class _STL::basic_ostream<char,_STL::char_traits<char> >'
/home/mv/STLport-4.5.3/stlport/stl/_iosfwd.h:39: forward declaration of `class 
_STL::basic_ostream<char,_STL::char_traits<char> >'
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c: In function `bool 
_STL::__stlp_string_fill<char, _STL::char_traits<char> 
>(_STL::basic_ostream<char,_STL::char_traits<char> > &, 
_STL::basic_streambuf<char,_STL::char_traits<char> > *, unsigned int)':
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c:61:   instantiated from 
`_STL::operator <<<char, _STL::char_traits<char>, _STL::allocator<char> 
>(_STL::basic_ostream<char,_STL::char_traits<char> > &, const 
_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > &)'
math_streamstr.C:26:   instantiated from here
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c:28: invalid use of undefined type 
`class _STL::basic_ostream<char,_STL::char_traits<char> >'
/home/mv/STLport-4.5.3/stlport/stl/_iosfwd.h:39: forward declaration of `class 
_STL::basic_ostream<char,_STL::char_traits<char> >'
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c:33: invalid use of undefined type 
`class _STL::basic_streambuf<char,_STL::char_traits<char> >'
/home/mv/STLport-4.5.3/stlport/stl/_iosfwd.h:33: forward declaration of `class 
_STL::basic_streambuf<char,_STL::char_traits<char> >'
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c: In function `class 
_STL::basic_ostream<char,_STL::char_traits<char> > & _STL::operator <<<char, 
_STL::char_traits<char>, _STL::allocator<char> 
>(_STL::basic_ostream<char,_STL::char_traits<char> > &, const 
_STL::basic_string<char,_STL::char_traits<char>,_STL::allocator<char> > &)':
math_streamstr.C:26:   instantiated from here
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c:63: invalid use of undefined type 
`class _STL::basic_streambuf<char,_STL::char_traits<char> >'
/home/mv/STLport-4.5.3/stlport/stl/_iosfwd.h:33: forward declaration of `class 
_STL::basic_streambuf<char,_STL::char_traits<char> >'
/home/mv/STLport-4.5.3/stlport/stl/_string_io.c:70: incomplete type 
`_STL::basic_ostream<char,_STL::char_traits<char> >' does not have member `failbit'
make: *** [math_streamstr.lo] Error 1
lstrings.C: In function `const class _STL::string lyx::support::trim(const 
_STL::string &, const char * = " ")':
lstrings.C:421: implicit declaration of function `int lyx::support::BOOST_ASSERT(...)'
make[1]: *** [lstrings.lo] Error 1
make: *** [all] Error 2

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to