From 111a0da05ecc435069f2b243053062c41c1844ef Mon Sep 17 00:00:00 2001
From: Matti Pellika <matti.pellikka@tut.fi>
Date: Thu, 11 Feb 2010 10:56:08 +0000
Subject: [PATCH] Windows build debugging.

---
 Geo/Homology.cpp      | 2 +-
 contrib/kbipack/mpz.c | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/Geo/Homology.cpp b/Geo/Homology.cpp
index 243c49440a..bcb1390739 100644
--- a/Geo/Homology.cpp
+++ b/Geo/Homology.cpp
@@ -138,7 +138,7 @@ void Homology::findGenerators(std::string fileName)
 			       chains->getTorsion(j,i));
       t1 = Cpu();
       int start = chain->getSize();
-      chain->smoothenChain();
+      //chain->smoothenChain();
       t2 = Cpu();
       Msg::Info("Smoothened H%d %d from %d cells to %d cells (%g s).", 
 		j, i, start, chain->getSize(), t2 - t1);
diff --git a/contrib/kbipack/mpz.c b/contrib/kbipack/mpz.c
index d6aced63de..3ec1b2a4df 100755
--- a/contrib/kbipack/mpz.c
+++ b/contrib/kbipack/mpz.c
@@ -19,11 +19,13 @@
 
 #if ! defined(HAVE_GMP)
 
+#include "GmshMessage.cpp"
 #include "limits.h"
 
 void overflow()
 {
   printf("ERROR: Integer overflow detected! Compile with GMP library to fix this. \n");
+  Msg::Error("Integer overflow detected! Compile with GMP library to fix this. \n");
 }
 
 long int addcheck(long int a, long int b){
-- 
GitLab