Dl on windows?

Is ‘dl’ available on windows.

require “dl”

Error: can’t find file ‘dl’

Assuming you’re referring to libdl related to Shipping the interpreter - #29 by dsisnero; this would be a system dependency, not something you require like you would a shard or other Crystal file. You may instead be interested in: Outstanding issues for the interpreter on Windows · Issue #12396 · crystal-lang/crystal · GitHub

I am trying to use GitHub - hugopl/crystal-tree-sitter: Crystal bindings for tree-sitter library on windows. The tree_sitter\repository.cr

In src\tree_sitter\repository.cr:50:21

50 | handle = LibC.dlopen(so_path.to_s, LibC::RTLD_LAZY | LibC::RTLD_LOCAL)

Error: undefined fun ‘dlopen’ for LibC

I’d open an issue on that repo asking about Windows support. Seems it only supports linux at the moment.

There is no dlopen on Windows, instead LoadLibraryExW should be used. The interpreter itself has supported Windows for awhile using Crystal::Loader