Explorar el Código

missing matio fixed

Sven Sickert hace 12 años
padre
commit
59a597618e
Se han modificado 1 ficheros con 10 adiciones y 0 borrados
  1. 10 0
      progs/testLinsolvers.cpp

+ 10 - 0
progs/testLinsolvers.cpp

@@ -6,6 +6,9 @@
 
 */
 #include "core/basics/Config.h"
+
+#ifdef NICE_USELIB_MATIO
+
 #include "core/algebra/IterativeLinearSolver.h"
 #include "core/algebra/PartialGenericMatrix.h"
 #include "core/algebra/GBCDSolver.h"
@@ -264,3 +267,10 @@ int main (int argc, char **argv)
 
   return 0;
 }
+#else
+int main (int argc, char **argv)
+{
+  std::cerr << "MatIO library is missing in your system - this program will have no effect. " << std::endl;  
+}
+
+#endif