help-gift
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[help-GIFT] compilation misses includes with g++ 4.3.2


From: Claude Heiland-Allen
Subject: [help-GIFT] compilation misses includes with g++ 4.3.2
Date: Tue, 04 Nov 2008 13:39:58 +0000
User-agent: Mozilla-Thunderbird 2.0.0.17 (X11/20081018)

Hi all,

I compiled GIFT fresh from CVS with g++ 4.3.2, had to add some missing includes and change a duplicate parameter name. See attached patch.

Hopefully it works, having built successfully, but I haven't tested yet.

Thanks,


Claude
--
http://claudiusmaximus.goto10.org
Index: GIFTServer/modifyDistanceMatrix.cc
===================================================================
RCS file: /sources/gift/gift/GIFTServer/modifyDistanceMatrix.cc,v
retrieving revision 1.3
diff -u -r1.3 modifyDistanceMatrix.cc
--- GIFTServer/modifyDistanceMatrix.cc  25 Feb 2004 06:47:12 -0000      1.3
+++ GIFTServer/modifyDistanceMatrix.cc  4 Nov 2008 13:22:09 -0000
@@ -15,6 +15,7 @@
 #include <string>
 #include <map>
 #include <functional>
+#include <cstdlib>
 
 using namespace std;
 
Index: libGIFTAcDistanceMatrix/include/CPersistentTranslatedIndexMatrix.h
===================================================================
RCS file: 
/sources/gift/gift/libGIFTAcDistanceMatrix/include/CPersistentTranslatedIndexMatrix.h,v
retrieving revision 1.10
diff -u -r1.10 CPersistentTranslatedIndexMatrix.h
--- libGIFTAcDistanceMatrix/include/CPersistentTranslatedIndexMatrix.h  28 Feb 
2006 13:48:22 -0000      1.10
+++ libGIFTAcDistanceMatrix/include/CPersistentTranslatedIndexMatrix.h  4 Nov 
2008 13:22:10 -0000
@@ -76,7 +76,7 @@
                     CIDContentPairList& outList)const;
   ///
   bool setValue(const TTID& inX,
-               const TTID& inX,
+               const TTID& inY,
                const TTContent& inValue)const;
   ///
   operator bool()const;
Index: libGIFTQuInvertedFile/cc/CWeightingFunction.cc
===================================================================
RCS file: /sources/gift/gift/libGIFTQuInvertedFile/cc/CWeightingFunction.cc,v
retrieving revision 1.3
diff -u -r1.3 CWeightingFunction.cc
--- libGIFTQuInvertedFile/cc/CWeightingFunction.cc      29 May 2002 06:45:06 
-0000      1.3
+++ libGIFTQuInvertedFile/cc/CWeightingFunction.cc      4 Nov 2008 13:22:10 
-0000
@@ -17,7 +17,7 @@
 ***************************************************/
 #include <cmath>
 #include "libGIFTQuInvertedFile/include/CWeightingFunction.h"
-#include "iostream.h"
+#include <iostream>
 #include "FeatureExtraction/gift_features.h"
 
 #include <algorithm>
Index: libMRML/cc/CAccessorImplementation.cc
===================================================================
RCS file: /sources/gift/gift/libMRML/cc/CAccessorImplementation.cc,v
retrieving revision 1.6
diff -u -r1.6 CAccessorImplementation.cc
--- libMRML/cc/CAccessorImplementation.cc       28 Feb 2006 13:48:22 -0000      
1.6
+++ libMRML/cc/CAccessorImplementation.cc       4 Nov 2008 13:22:10 -0000
@@ -54,6 +54,7 @@
 #include <iostream>
 #include <cassert>
 #include <cmath>
+#include <cstdlib>
 
 #define _NO_PRINT_OFFSET_CHECK
 #define _NO_CHECK_OFFSET_FILE
Index: libMRML/cc/CCommunicationHandler.cc
===================================================================
RCS file: /sources/gift/gift/libMRML/cc/CCommunicationHandler.cc,v
retrieving revision 1.17
diff -u -r1.17 CCommunicationHandler.cc
--- libMRML/cc/CCommunicationHandler.cc 10 Jan 2006 08:53:03 -0000      1.17
+++ libMRML/cc/CCommunicationHandler.cc 4 Nov 2008 13:22:10 -0000
@@ -12,6 +12,7 @@
 #include "libMRML/include/CXEVCommunication.h" // the visitor analyzing the 
document trees built
 #include "libMRML/include/CCommunicationHandler.h"
 #include <string>
+#include <cstring>
 #include <cstdio>
 #include <stdlib.h>
 #include "libMRML/include/mrml_const.h" //mrml string constants 
newStart/EndMRMLElement
Index: libMRML/cc/CDynamicQueryFactory.cc
===================================================================
RCS file: /sources/gift/gift/libMRML/cc/CDynamicQueryFactory.cc,v
retrieving revision 1.9
diff -u -r1.9 CDynamicQueryFactory.cc
--- libMRML/cc/CDynamicQueryFactory.cc  28 Feb 2006 13:48:22 -0000      1.9
+++ libMRML/cc/CDynamicQueryFactory.cc  4 Nov 2008 13:22:10 -0000
@@ -31,6 +31,7 @@
 // for file name treatment
 #include "libMRML/include/getLibNameFromFileName.h"
 #include <set>
+#include <cstdlib>
 
 CQuery* CDynamicQueryFactory::makeQuery(const string & inBaseType, 
                                           CAccessorAdminCollection & 
inAccessorAdminCollection,
Index: libMRML/cc/CI18nTranslator.cc
===================================================================
RCS file: /sources/gift/gift/libMRML/cc/CI18nTranslator.cc,v
retrieving revision 1.3
diff -u -r1.3 CI18nTranslator.cc
--- libMRML/cc/CI18nTranslator.cc       28 Feb 2006 13:48:22 -0000      1.3
+++ libMRML/cc/CI18nTranslator.cc       4 Nov 2008 13:22:10 -0000
@@ -25,6 +25,7 @@
 #include "libMRML/include/CXEVI18nTranslator.h"
 #include <iostream>
 #include <fstream>
+#include <cstring>
 /**
    This class offers runtime translation of strings. In contrast
    to GNU gettext we can chose during runtime the language without 
Index: libMRML/cc/CQueryTreeBuilder.cc
===================================================================
RCS file: /sources/gift/gift/libMRML/cc/CQueryTreeBuilder.cc,v
retrieving revision 1.6
diff -u -r1.6 CQueryTreeBuilder.cc
--- libMRML/cc/CQueryTreeBuilder.cc     18 Feb 2002 06:19:44 -0000      1.6
+++ libMRML/cc/CQueryTreeBuilder.cc     4 Nov 2008 13:22:10 -0000
@@ -3,6 +3,8 @@
 #include "libMRML/include/CQueryTreeBuilder.h"
 #include "libMRML/include/CAlgorithm.h"
 #include "libMRML/include/mrml_const.h"
+#include <cstring>
+
 //----------------------------------------
 
 CQueryTreeBuilder::CQueryTreeBuilder(){};
Index: libMRML/cc/CXMLElementBuilder.cc
===================================================================
RCS file: /sources/gift/gift/libMRML/cc/CXMLElementBuilder.cc,v
retrieving revision 1.6
diff -u -r1.6 CXMLElementBuilder.cc
--- libMRML/cc/CXMLElementBuilder.cc    5 Nov 2002 16:32:33 -0000       1.6
+++ libMRML/cc/CXMLElementBuilder.cc    4 Nov 2008 13:22:10 -0000
@@ -1,6 +1,7 @@
 #include <memory>
 #include <iostream> // for printouts
 #include "libMRML/include/CXMLElementBuilder.h"
+#include <cstring>
 
 void newStartXMLElement(void *inUserData, 
                         const char *inElementName, 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]