diff --git a/unittest/user_type.cpp b/unittest/user_type.cpp
index 7cf41ab21d73f15413462af764d4d075b29173f2..595eeeca69dba65666a15accd0c7ee440bc11490 100644
--- a/unittest/user_type.cpp
+++ b/unittest/user_type.cpp
@@ -189,8 +189,10 @@ BOOST_PYTHON_MODULE(user_type)
   bp::def("create_float",create<float>);
   
   bp::def("build_matrix",build_matrix<double>);
+#if EIGEN_VERSION_AT_LEAST(3,3,0)
   bp::def("print",print<double>);
   bp::def("print",print<float>);
+#endif
   
   eigenpy::registerCast<DoubleType,double>(true);
   eigenpy::registerCast<double,DoubleType>(true);