[cgma-dev] Lasso with gcc-4.4.1 (patch)
Jed Brown
jed at 59A2.org
Mon Oct 19 16:14:54 CDT 2009
Could you apply this patch to Lasso. I think I sent it last month, but
it wasn't applied.
commit ee63f99be71ecc3a83c80d2f29026f253f7da458
Author: Jed Brown <jed at 59A2.org>
Date: Fri Sep 18 10:36:02 2009 -0500
Include stdio.h required for sprintf with stricter gcc-4.4.1
diff --git a/AssocPairC.cpp b/AssocPairC.cpp
index f980cce..01005c4 100644
--- a/AssocPairC.cpp
+++ b/AssocPairC.cpp
@@ -5,6 +5,7 @@
#include "iRel.h"
#include <string.h>
+#include <stdio.h>
#define RETURN(a) {iRel_LAST_ERROR.error_type = a; return a;}
#define iRel_processError(a, b) {sprintf(iRel_LAST_ERROR.description, b); iRel_LAST_ERROR.error_type = a;}
diff --git a/iRel_Lasso.cpp b/iRel_Lasso.cpp
index 8a3f6ff..b5d6c3f 100644
--- a/iRel_Lasso.cpp
+++ b/iRel_Lasso.cpp
@@ -19,6 +19,7 @@
#include <map>
#include <algorithm>
#include <math.h>
+#include <stdio.h>^M
const bool debug = false;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 261 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20091019/70b1e373/attachment.pgp>
More information about the cgma-dev
mailing list