Trying to use the libclang Dub package

bachmeier no at spam.net
Thu Jul 19 15:42:02 UTC 2018


On Thursday, 19 July 2018 at 14:21:51 UTC, bachmeier wrote:

[...]

> .dub/build/unittest-unittest-linux.posix-x86_64-dmd_2081-A8A607969A46E4CDF45479E7A30874E9/ut.o: In function `_D5parse3raw17__unittest_L64_C9FZ12__dgliteral1MFNaNbNiNfZk':
> /home/office/.dub/packages/libclang-0.0.6/libclang/tests/parse/raw.d:88: undefined reference to `clang_visitChildren'
> collect2: error: ld returned 1 exit status
> Error: linker exited with status 1
> /usr/bin/dmd failed with exit code 1.


Found the problem. The libclang package is looking for 
/usr/lib/llvm-3.9/lib/libclang.so. For some reason, Ubuntu has 
libclang.so.1. Creating a symlink in that directory to 
libclang.so is a solution.


More information about the Digitalmars-d-learn mailing list