stringfwd.h:48: error: template with C linkage
which makes sense, since #include <algorithm> is being opened within an extern "C" block.
The easiest thing to do is remove the definitions, since they are relics anyway.
Fix:
--- a/lib/neatogen/sparsegraph.h
+++ b/lib/neatogen/sparsegraph.h
@@ -37,31 +37,9 @@ extern "C" {
typedef int DistType; /* must be signed!! */
- inline double max(double x, double y) {
- if (x >= y)
- return x;
- else
- return y;
- } inline double min(double x, double y) {
- if (x <= y)
- return x;
- else
- return y;
- }
-
- inline int max(int x, int y) {
- if (x >= y)
- return x;
- else
- return y;
- }
-
- inline int min(int x, int y) {
- if (x <= y)
- return x;
- else
- return y;
- }
+# include <algorithm>
+ using std::max;
+ using std::min;
struct Point {
double x;