[LLVMdev] Fwd: Linking fails when compiling files that use llvm routines

Yannis Mantzouratos giannismantz at gmail.com
Tue Dec 29 11:31:59 PST 2009


I 've built llvm 2.6 in linux, and then i installed it in the system
by 'make install'. However, when i try to compile a file that uses
llvm routines and libraries (by giving the command: "{compiler}
`llvm-config --cxxflags --ldflags --libs all -o Test test.cpp" where i
tried both llvm-g++ and g++ in the {compiler} field), the linking
fails and an "undefined reference to llvm::some_llvm_routine()" error
message is raised. The lib files are actually placed in the
/usr/local/lib directory, but they seem as they do not exist or
something? I would appreciate it very much if any help could be

Yannis Mantzouratos.

More information about the llvm-dev mailing list