diff --git a/src/CaosDB.jl b/src/CaosDB.jl index e065ee22d6dde6138560a7437824b58951bcdfae..f9c255790ec5c2c202caa611c09d09be207850bb 100644 --- a/src/CaosDB.jl +++ b/src/CaosDB.jl @@ -24,10 +24,15 @@ module CaosDB +using Libdl + """ Chose the name of the library according to the OS you're running. """ library_name = (@static Sys.iswindows() ? "ccaosdb" : "libccaosdb") +if isempty(find_library(library_name)) + @error "Could not find $library_name" +end module Exceptions