diff --git a/Geo/GFaceCompound.h b/Geo/GFaceCompound.h
index bd1d33cd62eb170e385879c8bebf746641d36e99..e3da8676697e52d4dc873f359a4b883ef2a4090d 100644
--- a/Geo/GFaceCompound.h
+++ b/Geo/GFaceCompound.h
@@ -65,7 +65,9 @@ class GFaceCompound : public GFace {
   void setParam(std::map<MVertex*, SPoint3> rbf_param, rbf *myRBF);
 #endif
  protected:
+#ifdef HAVE_RBF
   rbf *_rbf;
+#endif
   simpleFunction<double> *ONE;
   simpleFunction<double> *MONE;
   std::list<GFace*> _compound;