>>>>> "Ben" == Ben Stanley <[EMAIL PROTECTED]> writes:

Ben> Content-Type: text/plain; charset="iso-8859-1"
Ben> Content-Transfer-Encoding: 8bit

Ben> Hi,

Ben> I ran into some trouble with <string> when compiling on RH 7.1.

Ben> It seems that on this platform, configure decides that it is OK
Ben> to use <sstream>, but that it is not OK to use <string>.

Ben> Subsequently, in formula.C, <sstream> is indirectly included
Ben> before "LString.h", thereby including <string> as well, causing
Ben> the #error in "LString.h" to be broken.

In current cvs, we have the following patch. Does it solve your
problem?

JMarc

Index: Lsstream.h
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/Lsstream.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Lsstream.h  2000/09/15 12:08:06     1.3
+++ Lsstream.h  2001/05/03 13:22:15     1.4
@@ -12,6 +12,10 @@
 #ifndef LSSTREAM_H
 #define LSSTREAM_H 
 
+// Since we will include a string header anyway, we'd better do it
+// right now so that <string> is not loaded before lyxstring.h. (JMarc)
+#include "LString.h"
+
 #ifdef HAVE_SSTREAM
 #include <sstream>
 #else


Reply via email to