[LLVMdev] Using LLVM components

Óscar Fuentes ofv at wanadoo.es
Thu Nov 4 18:40:04 PDT 2010


"汶翰 (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]





More information about the llvm-dev mailing list