diff --git a/Geo/GModel.h b/Geo/GModel.h
index 119860a57124a9d28bde6880a571229c713fffeb..e03481e504bea758a1a1edcf8ea6b8e51cef4968 100644
--- a/Geo/GModel.h
+++ b/Geo/GModel.h
@@ -17,7 +17,7 @@
 #include "GRegion.h"
 #include "SPoint3.h"
 #include "SBoundingBox3d.h"
-#include "simpleFunction.h"
+template <class scalar> class simpleFunction;
 
 class FM_Internals;
 class GEO_Internals;
diff --git a/gmshpy/gmshGeo.i b/gmshpy/gmshGeo.i
index e71243070e9e6c99a897f85b9fff44cb573cba1a..2fbcf2a9639e04ddc91b7e8cdf8c716998dcd263 100644
--- a/gmshpy/gmshGeo.i
+++ b/gmshpy/gmshGeo.i
@@ -36,7 +36,6 @@
   #include "SPoint2.h"
   #include "SBoundingBox3d.h"
   #include "Curvature.h"
-  #include "simpleFunction.h"
 %}
 
 namespace std {
@@ -83,5 +82,4 @@ namespace std {
 %include "SBoundingBox3d.h"
 %include "Curvature.h"
 %include "gmshLevelset.h"
-%include "simpleFunction.h"