diff --git a/Mesh/3D_Mesh.cpp b/Mesh/3D_Mesh.cpp
index 67c40f45e323503381874c48f2e98cd27106c700..f5034ffb4ac2006ad146614eba7b905a6cb4ef33 100644
--- a/Mesh/3D_Mesh.cpp
+++ b/Mesh/3D_Mesh.cpp
@@ -1,4 +1,4 @@
-// $Id: 3D_Mesh.cpp,v 1.42 2002-09-20 19:53:08 geuzaine Exp $
+// $Id: 3D_Mesh.cpp,v 1.43 2002-10-03 07:47:10 geuzaine Exp $
 //
 // Copyright (C) 1997 - 2002 C. Geuzaine, J.-F. Remacle
 //
@@ -238,7 +238,7 @@ struct SimplexInBox
 {
   double sizeBox;
   SimplexInBox(double sb) : sizeBox(sb) {}
-  bool operator() ( Simplex * s , double min[3], double max[3])
+  void operator() ( Simplex * s , double min[3], double max[3])
   {
     double ss;
     if(sizeBox > s->Radius) ss = s->Radius;
diff --git a/Mesh/SMS.cpp b/Mesh/SMS.cpp
index 31b299e4aa422206878b9c76e9cabb2b38915e61..edc20e4a75e07afbc99d030ba4d88b0aeb5b8ae7 100644
--- a/Mesh/SMS.cpp
+++ b/Mesh/SMS.cpp
@@ -1,4 +1,4 @@
-// $Id: SMS.cpp,v 1.8 2002-05-20 18:28:28 geuzaine Exp $
+// $Id: SMS.cpp,v 1.9 2002-10-03 07:47:10 geuzaine Exp $
 //
 // Copyright (C) 1997 - 2002 C. Geuzaine, J.-F. Remacle
 //
@@ -19,7 +19,6 @@
 // 
 // Please report all bugs and problems to "gmsh@geuz.org".
 
-#include <iostream.h>
 #include <assert.h>
 #include "Gmsh.h"
 #include "Geo.h"
@@ -284,8 +283,7 @@ void Read_Mesh_SMS (Mesh *m, FILE *in)
 	    }
 	  else
 	    {
-	      cout << "exiting" << endl;
-	      exit(-1);
+	      Msg(FATAL, "Read mesh SMS exiting");
 	    }
 	  for(int j=0;j<nbPts;j++)
 	    {
@@ -651,7 +649,7 @@ void Write_DMG_FILE (Mesh *m, char *filename)
 	      beg = c->beg;
 	      deb = 0;
 	    }
-	  cout << "beg-> " << c->beg->Num << " end-> " << c->end->Num << endl;
+	  Msg(INFO, "beg->%d end->%d", c->beg->Num, c->end->Num);
 	  (numEdgeLoop[iLoop]) ++ ;
 	  if(c->end == beg)
 	    {