search for: clangtest

Displaying 7 results from an estimated 7 matches for "clangtest".

2012 Jul 17
3
[LLVMdev] llvm library linking issues
...-config --cppflags --ldflags --libs core` is the same. I've also tried specifying -lLLVMSupport manually. Same result.  --Eugene ----- Original Message -----  Hi Eugene, >I do this, and I've tried a few variations of on it: >clang++ `llvm-config --cppflags --ldflags --libs core` -o clangtest clangtest.cpp the missing routine is defined in the support library, not the core library, try --libs core support Ciao, Duncan. >>I've also tried removing the library and the include file in turn, which in both cases succefully made the compiler not find the files needed. >>-----...
2012 Jul 17
0
[LLVMdev] llvm library linking issues
Eugene, how about below? $ clang clangtest.cpp `llvm-config --ldflags --libs core` (I guess linking order would be) 2012/7/18 Eugene <code_ep at yahoo.com>: > 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 -lL...
2012 Jul 17
2
[LLVMdev] llvm library linking issues
I do this, and I've tried a few variations of on it: clang++ `llvm-config --cppflags --ldflags --libs core`  -o clangtest clangtest.cpp I've also tried removing the library and the include file in turn, which in both cases succefully made the compiler not find the files needed. ----- Original Message ----- Hi Eugene, On 17/07/12 03:46, Eugene wrote: > I'm trying to make use of the llvm compiler libraries...
2012 Jul 17
0
[LLVMdev] llvm library linking issues
Hi Eugene, > I do this, and I've tried a few variations of on it: > clang++ `llvm-config --cppflags --ldflags --libs core` -o clangtest clangtest.cpp the missing routine is defined in the support library, not the core library, try --libs core support Ciao, Duncan. > > I've also tried removing the library and the include file in turn, which in both cases succefully made the compiler not find the files needed. > >...
2011 Oct 08
1
[LLVMdev] Is clang -g (gdb) support broken for mingw builds?
...on present in the clang-built version according to the following: printf "b 7 \n info source" | gdb -q tenline_clang Reading symbols from tenline_clang.exe...done. (gdb) No line 7 in file "tenline.c". (gdb) Current source file is tenline.c Compilation directory is clangtest Located in clangtest/tenline.c Source language is c. Compiled with DWARF 2 debugging format. Does not include preprocessor macro info. The same command using the gcc-built version reports: printf "b 7 \n info source" | gdb -q tenline_gcc Reading symbols from tenline_gcc.e...
2012 Jul 17
0
[LLVMdev] llvm library linking issues
Hi Eugene, On 17/07/12 03:46, Eugene wrote: > I'm trying to make use of the llvm compiler libraries, but I can't get them to link to my program correctly. > > #include <llvm/Constants.h> > #include <llvm/DerivedTypes.h> > > > int main(){ > > llvm::APInt(1,0); > > return 0; > } > > I get an error like: > undefined reference to
2012 Jul 17
2
[LLVMdev] llvm library linking issues
I'm trying to make use of the llvm compiler libraries, but I can't get them to link to my program correctly. #include <llvm/Constants.h> #include <llvm/DerivedTypes.h> int main(){   llvm::APInt(1,0);   return 0; } I get an error like: undefined reference to `llvm::APInt::initSlowCase(unsigned int, unsigned long long, bool) (this function is called by the inline