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?

/Christian




-- 
Christian Ridderström                           http://www.md.kth.se/~chr


Reply via email to