Missing clang headers

Hello!

I’m trying to compile a custom clang tool inside a docker, but clang’s headers are missing there. In particular I’m using “ASTMatchers/ASTMatchers.h” and this file does not exist in the docker container.

I’ve installed llvm and clang with apt-get install. LLVM headers are there but clang’s headers are not. Any chance you could tell what am I doing wrong?

Everything works fine on my machine where I have llvm and clang built from sources.

Best,

Anahit.

Hi Anahit

You will have to install the “libclang-dev” package to get Clang headers and libraries.

Greetings from TUM!

Rafael