]> www.ginac.de Git - ginac.git/commitdiff
Fixed compile bug caused by "missing" config.h.
authorJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Tue, 3 Jan 2006 18:34:12 +0000 (18:34 +0000)
committerJens Vollinga <vollinga@thep.physik.uni-mainz.de>
Tue, 3 Jan 2006 18:34:12 +0000 (18:34 +0000)
ginac/excompiler.cpp
ginac/excompiler.h

index 4f121d7ac8ac30bcaa0dff84c5cd3ddb272bc5fd..8e586536f7cc0d08f6f4fdc8f46f51adda22092e 100644 (file)
@@ -30,6 +30,7 @@
 #include <string>
 #include <vector>
 
+#include "config.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");
 }
 
+#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
index 0c1ca3a843bc657727e0a4253ba7ed4ee2662859..56c870e14b813b4190ecbce2ba897926a12d1b4b 100644 (file)
@@ -4,7 +4,7 @@
  *  fast numerical integration. */
 
 /*
- *  GiNaC Copyright (C) 1999-2005 Johannes Gutenberg University Mainz, Germany
+ *  GiNaC Copyright (C) 1999-2006 Johannes Gutenberg University Mainz, Germany
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
 #define __GINAC_EXCOMPILER_H__
 
 #include "basic.h"
-#include "config.h"
 #include "ex.h"
 
 namespace GiNaC {
 
-#ifdef HAVE_LIBDL
 
 typedef double (*FP_dim1) (double);
 
@@ -40,7 +38,6 @@ typedef void (*FP_cuba) (const int*, const double[], const int*, double[]);
 
 FP_cuba compile(const lst& exprs, const lst& syms);
 
-#endif
 
 } // namespace GiNaC