]> www.ginac.de Git - ginac.git/blobdiff - ginac/excompiler.cpp
Fixed compile bug caused by "missing" config.h.
[ginac.git] / ginac / excompiler.cpp
index 4f121d7ac8ac30bcaa0dff84c5cd3ddb272bc5fd..8e586536f7cc0d08f6f4fdc8f46f51adda22092e 100644 (file)
@@ -30,6 +30,7 @@
 #include <string>
 #include <vector>
 
 #include <string>
 #include <vector>
 
+#include "config.h"
 #include "ex.h"
 #include "lst.h"
 #include "operators.h"
 #include "ex.h"
 #include "lst.h"
 #include "operators.h"
@@ -165,6 +166,20 @@ FP_cuba compile(const lst& exprs, const lst& syms)
        return (FP_cuba) dlsym(module, "compiled_ex");
 }
 
        return (FP_cuba) dlsym(module, "compiled_ex");
 }
 
+#elif
+
+FP_dim1 compile(const ex& expr, const symbol& sym)
+{
+       throw std::runtime_error("compile has been disabled because of missing libdl!");
+       return NULL;
+}
+
+FP_cuba compile(const lst& exprs, const lst& syms)
+{
+       throw std::runtime_error("compile has been disabled because of missing libdl!");
+       return NULL;
+}
+
 #endif
 
 } // namespace GiNaC
 #endif
 
 } // namespace GiNaC