Hi,

I'm trying to use dub to compile a quick experiment that uses Deimos libclang bindings, which of course requires linking against an installed libclang. I believe this is what I need to include in dub.json:

 "systemDependencies": "libclang-6.0"

But it just won't link against the lib in the compilation process. Using the -v option reveals the linking stage call:

/usr/bin/dmd -of.dub/build/application-debug-linux.posix-x86_64-dmd_2081-7C29937BC9011750CFA15D7325224156/damnc .dub/build/application-debug-linux.posix-x86_64-dmd_2081-7C29937BC9011750CFA15D7325224156/damnc.o -L--no-as-needed -g

It does not mention libclang at all. I've tried with all "clang", "libclang-6.0.so.1", but I just don't seem to be able to make it work. Would anyone mind helping me out?

BTW, I am aware Deimos bindings for libclang are based on v3.7 and not 6.0, but 3.7 is not available for Ubuntu 18.04 and I was wagering the interface probably hasn't changed much.

Reply via email to