From: Jens Vollinga Date: Tue, 3 Jan 2006 18:34:12 +0000 (+0000) Subject: Fixed compile bug caused by "missing" config.h. X-Git-Tag: release_1-4-0~118 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=db52ae4c832e9a9981ecf78ecc3c9e59f461d8e4;hp=1be6e8f6ed13bcfb278d13e01f1b4e4851a91114;ds=sidebyside Fixed compile bug caused by "missing" config.h. --- diff --git a/ginac/excompiler.cpp b/ginac/excompiler.cpp index 4f121d7a..8e586536 100644 --- a/ginac/excompiler.cpp +++ b/ginac/excompiler.cpp @@ -30,6 +30,7 @@ #include #include +#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 diff --git a/ginac/excompiler.h b/ginac/excompiler.h index 0c1ca3a8..56c870e1 100644 --- a/ginac/excompiler.h +++ b/ginac/excompiler.h @@ -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 @@ -25,12 +25,10 @@ #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