Displaying 1 result from an estimated 1 matches for "r99922105".
2010 Nov 05
1
[LLVMdev] Using LLVM components
...I write a simple code.
// context.cpp
#include "llvm/LLVMContext.h"
int main() {
llvm::LLVMContext& context = llvm::getGlobalContext();
return 0;
}
$ clang++ `llvm-config --cxxflags --ldflags --libs` context.cpp
But it yells
/tmp/cc-maq8ar.o: In function `main':
/nfs/m1/99/r99922105/context.cpp:4: undefined reference to
`llvm::getGlobalContext()'
collect2: ld returned 1 exit status
clang: error: linker (via gcc) command failed with exit code 1 (use -v to
see invocation)
Seems like it cannot find the library.
I have tried debugging
$ echo `llvm-config --cxxflags --ldflags...