[ghemical-devel] ghemical-2.98 released

Abhishek Dasgupta abhidg at gmail.com
Fri Aug 1 02:12:45 EDT 2008


I solved it by adding

#include <algorithm>
using namespace std;

to the beginning of sasaeval.cpp

I did not need to link against f2c here (Archlinux, gcc-4.3.1).
These are the patches I applied to get ghemical and
its dependencies to compile on Arch:

ghemical.diff:

--- a/src/pangofont_wcl.cpp	2008-07-31 14:00:05.000000000 +0530
+++ b/src/pangofont_wcl.cpp	2008-08-01 09:53:09.000000000 +0530
@@ -19,6 +19,8 @@
 /*################################################################################################*/

 #include "pangofont_wcl.h"
+#include <stdlib.h>
+#include <string.h>

 #include <gtk/gtkgl.h>


libghemical.diff:

--- a/src/sasaeval.cpp	2008-08-01 09:39:01.000000000 +0530
+++ b/src/sasaeval.cpp	2008-08-01 09:40:33.000000000 +0530
@@ -21,6 +21,8 @@
 #include "sasaeval.h"

 #include "engine.h"
+#include <algorithm>
+using namespace std;

 // the surface area code apparently contains some bugs, since it sometimes
 // crashes. another possibility is that the surface area math contains some
--- a/src/sasaeval.h	2008-07-31 00:40:08.000000000 +0530
+++ b/src/sasaeval.h	2008-08-01 09:40:04.000000000 +0530
@@ -24,6 +24,7 @@
 #define SASAEVAL_H

 #include "typedef.h"
+#include <stdlib.h>

 struct cg_nbt3_nl;	// SASA neighbor list.

Also, I've updated ghemical to 2.98 in Arch now.
(http://aur.archlinux.org/packages.php?ID=10934)

Regards,
-- 
Abhishek Dasgupta



More information about the ghemical-devel mailing list