Christian Ridderström wrote:

> Hi
> 
> I'm trying to compile lyx-xforms using gcc 2.96, but I get errors
> like this:
> 
> g++ -DHAVE_CONFIG_H -I. -I../../../src/insets -I../../src
> -I../../../src/insets/../ -I../../../boost
> -I/pkg/mdhacks/grp/util/include -I/usr/X11R6/include -g -O
> -fno-exceptions -ftemplate-depth-30 -Wno-non-template-friend -W
> -Wall -MT ExternalSupport.lo -MD -MP -MF .deps/ExternalSupport.Tpo
> -c ../../../src/insets/ExternalSupport.C In file included from
> ../../../src/support/debugstream.h:17,
>                  from ../../../src/debug.h:16,
>                  from ../../../src/insets/ExternalSupport.C:21:
> ../../../boost/boost/test/detail/nullstream.hpp:20:48: ostream: No
> such file or directory
> ../../../boost/boost/test/detail/nullstream.hpp:21:50: streambuf: No
> such file or directory
> 
> Looking at nullstream.hpp, I see that it tries to include <ostream>,
> but I have no file with that name (only ostream.h). The
> #include-statements don't assume a .h extension, do they?
>
> Actually, the inclusion of ostream is inconsistent. Boost uses
> <ostream> all the time, but the lyx code does it by including
> "support/std_ostream.h" That file then checks HAVE_OSTREAM (not
> defined in my system) and finally uses <iostream>.
> 
> So, how should I fix this? If boost is an external "library", then
> changing that code isn't an option, is it?

The problem is that your STL library is very non-standard. Try and 
make a symbolic link from ostream to ostream.h.

If that fails consider using STLport. Georg Baum and Martin Vermeer 
seem to have it working with your compiler. However, Jean-Marc cannot 
get things working for him. See what your mileage is.

(Ask questions of these people to ascertain just what you need to do.)

-- 
Angus

Reply via email to