Kornel Benko wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
>
> On Freitag, 28. Februar 2003 14:35, Alfredo Braunstein wrote:
>> Try adding #include <config.h> to the top of format.h.
>
> Next error:
>
How about this? I hope I'v catched them all...
Alfredo
? save
Index: converter.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/converter.C,v
retrieving revision 1.65
diff -u -r1.65 converter.C
--- converter.C 2003/02/28 09:49:44 1.65
+++ converter.C 2003/02/28 14:29:29
@@ -29,10 +29,12 @@
#include "support/lyxfunctional.h"
#include "support/path.h"
#include "support/systemcall.h"
+#include "support/lstrings.h"
#include "BoostFormat.h"
#include <cctype>
+#include "LString.h"
#ifndef CXX_GLOBAL_CSTD
using std::isdigit;
Index: converter.h
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/converter.h,v
retrieving revision 1.25
diff -u -r1.25 converter.h
--- converter.h 2003/02/28 09:49:44 1.25
+++ converter.h 2003/02/28 14:29:29
@@ -13,9 +13,12 @@
* Full author contact details are available in file CREDITS
*/
+#include <config.h>
+
#include "graph.h"
#include <vector>
+#include "LString.h"
class Format;
class Formats;
Index: format.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/format.C,v
retrieving revision 1.1
diff -u -r1.1 format.C
--- format.C 2003/02/28 09:49:44 1.1
+++ format.C 2003/02/28 14:29:29
@@ -13,7 +13,6 @@
#include "debug.h"
#include "lyx_cb.h" // for ShowMessage() ... to be removed?
#include "gettext.h"
-#include "LString.h"
#include "frontends/Alert.h" //to be removed?
@@ -21,6 +20,16 @@
#include "support/path.h"
#include "support/systemcall.h"
#include "support/lyxfunctional.h"
+
+#include "BoostFormat.h"
+
+#include <algorithm>
+
+using std::cout;
+using std::endl;
+using std::io;
+using std::find_if;
+
namespace {
Index: format.h
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/format.h,v
retrieving revision 1.1
diff -u -r1.1 format.h
--- format.h 2003/02/28 09:49:44 1.1
+++ format.h 2003/02/28 14:29:29
@@ -15,11 +15,10 @@
* Full author contact details are available in file CREDITS
*/
+#include <config.h>
-
#include "buffer.h"
#include "LString.h"
-#include "support/lstrings.h"
#include <vector>
Index: graph.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/graph.C,v
retrieving revision 1.1
diff -u -r1.1 graph.C
--- graph.C 2003/02/28 09:49:44 1.1
+++ graph.C 2003/02/28 14:29:30
@@ -14,8 +14,12 @@
#include <queue>
#include <vector>
+#include <algorithm>
+
using std::queue;
+using std::fill;
using std::vector;
+using std::reverse;
Index: graph.h
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/graph.h,v
retrieving revision 1.1
diff -u -r1.1 graph.h
--- graph.h 2003/02/28 09:49:44 1.1
+++ graph.h 2003/02/28 14:29:30
@@ -13,8 +13,9 @@
* Full author contact details are available in file CREDITS
*/
-#include "LString.h"
+#include <config.h>
+#include "LString.h"
#include <queue>
#include <vector>
Index: lyxrc.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/lyxrc.C,v
retrieving revision 1.143
diff -u -r1.143 lyxrc.C
--- lyxrc.C 2003/02/28 09:49:46 1.143
+++ lyxrc.C 2003/02/28 14:29:33
@@ -23,6 +23,7 @@
#include "support/filetools.h"
#include "support/LAssert.h"
#include "support/userinfo.h"
+#include "support/lstrings.h"
#include "converter.h"
#include "format.h"
#include "gettext.h"
Index: frontends/qt2/QLImage.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/frontends/qt2/QLImage.C,v
retrieving revision 1.17
diff -u -r1.17 QLImage.C
--- frontends/qt2/QLImage.C 2003/02/28 09:49:46 1.17
+++ frontends/qt2/QLImage.C 2003/02/28 14:29:35
@@ -24,6 +24,9 @@
#include <qwmatrix.h>
#include <qpainter.h>
+#include "LString.h"
+#include "support/lstrings.h"
+
#include <boost/tuple/tuple.hpp>
using std::find_if;
Index: graphics/GraphicsConverter.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/graphics/GraphicsConverter.C,v
retrieving revision 1.28
diff -u -r1.28 GraphicsConverter.C
--- graphics/GraphicsConverter.C 2003/02/28 09:49:48 1.28
+++ graphics/GraphicsConverter.C 2003/02/28 14:29:36
@@ -20,6 +20,7 @@
#include "support/forkedcall.h"
#include "support/forkedcallqueue.h"
#include "support/lyxlib.h"
+#include "support/lstrings.h"
#include <boost/bind.hpp>
#include <boost/signals/trackable.hpp>
@@ -28,6 +29,8 @@
#include "support/LOstream.h"
#include <fstream>
#include <sys/types.h> // needed for pid_t
+
+#include "LString.h"
using std::endl;
using std::ostream;
Index: insets/insetgraphics.C
===================================================================
RCS file: /cvs/lyx/lyx-devel/src/insets/insetgraphics.C,v
retrieving revision 1.153
diff -u -r1.153 insetgraphics.C
--- insets/insetgraphics.C 2003/02/28 09:49:49 1.153
+++ insets/insetgraphics.C 2003/02/28 14:29:38
@@ -92,6 +92,8 @@
#include <boost/signals/trackable.hpp>
#include "BoostFormat.h"
+#include "LString.h"
+
#include <algorithm> // For the std::max
extern string system_tempdir;