harvard-acc / LLVM-Tracer

An LLVM pass to profile dynamic LLVM IR instructions and runtime values
Other
135 stars 35 forks source link

Undefined reference to clang::tooling::ClangTool::ClangTool #27

Closed tamimcse closed 4 years ago

tamimcse commented 5 years ago

I was getting linker error "undefined reference to clang::tooling::ClangTool::ClangTool.." on Ubuntu. I had to install libedit-dev to get it working. Probably it would be a good idea to add it to README.

xyzsam commented 4 years ago

I'm unsure how libedit-dev would make a difference here. It seems to me like the order of libraries would be more relevant, as suggested by the accepted answer here: https://askubuntu.com/questions/732326/undefined-references-compiling-clang-tutorial-on-14-04-2

@rgly implemented the CMake scripts so I will defer any future patches on library ordering to him.

jiapei100 commented 12 months ago

@tamimcse

Same here, Ubuntu 22.04.3, even with libedit-dev installed... Still buggy.