Hello,

I've made a trivial patch for hk_classes to compile on gcc 4.4.1.
<string.h> includes were missing in a few places.

BTW... I'm willing to help with the maintenance  of the hk_classes.
Since I want to use it in my project, i think i can at least provide it
with a maintenance mode.

Here is the patch:
 
diff -urp hk_classes-0.8.3 hk_classes-0.8.3.new
Only in hk_classes-0.8.3: config.h
diff -urp hk_classes-0.8.3/hk_classes/hk_actionquery.cpp hk_classes-0.8.3.new/hk_classes/hk_actionquery.cpp
--- hk_classes-0.8.3/hk_classes/hk_actionquery.cpp	2006-04-13 20:02:01.000000000 +0200
+++ hk_classes-0.8.3.new/hk_classes/hk_actionquery.cpp	2010-06-22 23:32:01.433938249 +0200
@@ -13,6 +13,7 @@
 #include "hk_database.h"
 
 #include <time.h>
+#include <string.h>
 
 class hk_actionqueryprivate
 {
diff -urp hk_classes-0.8.3/hk_classes/hk_button.cpp hk_classes-0.8.3.new/hk_classes/hk_button.cpp
--- hk_classes-0.8.3/hk_classes/hk_button.cpp	2006-07-09 16:33:28.000000000 +0200
+++ hk_classes-0.8.3.new/hk_classes/hk_button.cpp	2010-06-22 23:30:58.753690594 +0200
@@ -16,6 +16,7 @@
 #include "hk_report.h"
 #include "hk_actionquery.h"
 #include "hk_interpreter.h"
+#include <string.h>
 
 
 
diff -urp hk_classes-0.8.3/hk_classes/hk_column.cpp hk_classes-0.8.3.new/hk_classes/hk_column.cpp
--- hk_classes-0.8.3/hk_classes/hk_column.cpp	2006-10-02 19:54:17.000000000 +0200
+++ hk_classes-0.8.3.new/hk_classes/hk_column.cpp	2010-06-22 23:32:28.148687571 +0200
@@ -14,6 +14,7 @@
 #include "hk_dsdatavisible.h"
 #include "hk_datetime.h"
 #include <stdio.h>
+#include <string.h>
 
 hk_column::hk_column(hk_datasource* ds, const hk_string& lTRUE,const hk_string& lFALSE)
 {
diff -urp hk_classes-0.8.3/hk_classes/hk_datasource.cpp hk_classes-0.8.3.new/hk_classes/hk_datasource.cpp
--- hk_classes-0.8.3/hk_classes/hk_datasource.cpp	2006-10-29 20:38:25.000000000 +0100
+++ hk_classes-0.8.3.new/hk_classes/hk_datasource.cpp	2010-06-22 23:29:33.627687390 +0200
@@ -21,6 +21,7 @@
 #include <list>
 #include <stdlib.h>
 #include <time.h>
+#include <string.h>
 
 
  voidfunction* hk_datasource::p_enablefunction=NULL;
diff -urp hk_classes-0.8.3/hk_classes/hk_datasource.h hk_classes-0.8.3.new/hk_classes/hk_datasource.h
--- hk_classes-0.8.3/hk_classes/hk_datasource.h	2006-10-24 20:46:35.000000000 +0200
+++ hk_classes-0.8.3.new/hk_classes/hk_datasource.h	2010-06-22 23:39:38.053906439 +0200
@@ -16,6 +16,7 @@
 #include <utility>
 #include <algorithm>
 #include "hk_column.h"
+#include <string.h>
 using namespace std;
 
 class hk_database;
diff -urp hk_classes-0.8.3/hk_classes/hk_dsimage.cpp hk_classes-0.8.3.new/hk_classes/hk_dsimage.cpp
--- hk_classes-0.8.3/hk_classes/hk_dsimage.cpp	2006-05-20 22:07:19.000000000 +0200
+++ hk_classes-0.8.3.new/hk_classes/hk_dsimage.cpp	2010-06-22 23:30:36.705708605 +0200
@@ -11,6 +11,7 @@
 #include "hk_dsimage.h"
 #include "hk_form.h"
 #include "hk_url.h"
+#include <string.h>
 
 
 hk_dsimage::imagetypelisttype  hk_dsimage::p_imagetypefunctions;
diff -urp hk_classes-0.8.3/hk_classes/hk_reportsection.cpp hk_classes-0.8.3.new/hk_classes/hk_reportsection.cpp
--- hk_classes-0.8.3/hk_classes/hk_reportsection.cpp	2006-08-06 16:37:45.000000000 +0200
+++ hk_classes-0.8.3.new/hk_classes/hk_reportsection.cpp	2010-06-22 23:37:03.471711937 +0200
@@ -18,6 +18,7 @@
 #include "hk_database.h"
 #include "hk_column.h"
 #include "hk_datasource.h"
+#include <string.h>
 
 const  double teiler=10000.0;
 
diff -urp hk_classes-0.8.3/hk_classes/hk_storagedatasource.cpp hk_classes-0.8.3.new/hk_classes/hk_storagedatasource.cpp
--- hk_classes-0.8.3/hk_classes/hk_storagedatasource.cpp	2006-04-13 20:02:05.000000000 +0200
+++ hk_classes-0.8.3.new/hk_classes/hk_storagedatasource.cpp	2010-06-22 23:37:24.713937037 +0200
@@ -9,6 +9,7 @@
 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 // ****************************************************************************
 #include "hk_storagedatasource.h"
+#include <string.h>
 
 hk_storagedatasource::hk_storagedatasource(hk_database* d,hk_presentation* p):hk_datasource(d,p)
 {
diff -urp hk_classes-0.8.3/hk_mysqlclasses/hk_mysqlcolumn.cpp hk_classes-0.8.3.new/hk_mysqlclasses/hk_mysqlcolumn.cpp
--- hk_classes-0.8.3/hk_mysqlclasses/hk_mysqlcolumn.cpp	2005-05-16 21:01:50.000000000 +0200
+++ hk_classes-0.8.3.new/hk_mysqlclasses/hk_mysqlcolumn.cpp	2010-06-22 23:38:53.279685927 +0200
@@ -17,6 +17,7 @@
 
 #include <mysql.h>
 #include <errmsg.h>
+#include <string.h>
 
 hk_mysqlcolumn::hk_mysqlcolumn(hk_mysqldatasource* ds, const hk_string& tTRUE,const hk_string& tFALSE)
 :hk_storagecolumn(ds,tTRUE,tFALSE)
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Hk-classes-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hk-classes-discuss

Reply via email to