X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fexcompiler.cpp;h=8e586536f7cc0d08f6f4fdc8f46f51adda22092e;hp=4f121d7ac8ac30bcaa0dff84c5cd3ddb272bc5fd;hb=db52ae4c832e9a9981ecf78ecc3c9e59f461d8e4;hpb=1be6e8f6ed13bcfb278d13e01f1b4e4851a91114 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