llvm library linking issues

The output of `llvm-config --cppflags --ldflags --libs core support` and
`llvm-config --cppflags --ldflags --libs core` is the same. I've also tried specifying -lLLVMSupport manually. Same result.

--Eugene

Hi Eugene,

The output of `llvm-config --cppflags --ldflags --libs core support` and
`llvm-config --cppflags --ldflags --libs core` is the same. I've also tried specifying -lLLVMSupport manually. Same result.

maybe then llvm-config comes from a different version or build of LLVM than
the one providing the LLVM header files you are building your code against.

Ciao, Duncan.

Eugene, how about below?

$ clang clangtest.cpp `llvm-config --ldflags --libs core`

(I guess linking order would be)

That did it. I got it to work with this line (cpp flags was still needed):
clang++ -o clangtest clangtest.cpp llvm-config --cppflags --ldflags --libs core

Thank you,
–Eugene