"汶翰 (Wen-Han)" <nowar100 at gmail.com> writes: [snip] > $ clang++ `llvm-config --cxxflags --ldflags --libs` context.cpp Replace that with clang++ context.cpp `llvm-config --cxxflags --ldflags --libs` Libraries must be listed after the source or object files. [snip]