Displaying 3 results from an estimated 3 matches for "ccs4mbkp".
2009 Sep 15
3
[LLVMdev] C API linking problem
...ter -lLLVMCodeGen
-lLLVMScalarOpts -lLLVMTransformUtils -lLLVMipa -lLLVMAsmParser
-lLLVMArchive -lLLVMBitReader -lLLVMAnalysis -lLLVMTarget -lLLVMMC
-lLLVMCore -lLLVMSupport -lLLVMSystem
15:29|melis at juggle2:~/c/llvmpy> gcc -W -Wall -o blah `llvm-config --cflags
--ldflags --libs all` t.c
/tmp/ccs4MbKp.o: In function `main':
t.c:(.text+0x21): undefined reference to `LLVMContextCreate'
collect2: ld returned 1 exit status
15:29|melis at juggle2:~/c/llvmpy> nm ~/llvm/lib/libLLVMCore.a | grep
LLVMContextCreate
00001bc0 T LLVMContextCreate
Regards,
Paul
2009 Sep 15
0
[LLVMdev] C API linking problem
"Paul Melis" <llvm at assumetheposition.nl> writes:
> 15:29|melis at juggle2:~/c/llvmpy> gcc -W -Wall -o blah `llvm-config --cflags
> --ldflags --libs all` t.c
> /tmp/ccs4MbKp.o: In function `main':
> t.c:(.text+0x21): undefined reference to `LLVMContextCreate'
> collect2: ld returned 1 exit status
>
> 15:29|melis at juggle2:~/c/llvmpy> nm ~/llvm/lib/libLLVMCore.a | grep
> LLVMContextCreate
> 00001bc0 T LLVMContextCreate
Try this:
gcc t.c -...
2009 Sep 15
0
[LLVMdev] C API linking problem
"Paul Melis" <llvm at assumetheposition.nl> writes:
>>> 15:29|melis at juggle2:~/c/llvmpy> gcc -W -Wall -o blah `llvm-config
>>> --cflags
>>> --ldflags --libs all` t.c
>>> /tmp/ccs4MbKp.o: In function `main':
>>> t.c:(.text+0x21): undefined reference to `LLVMContextCreate'
>>> collect2: ld returned 1 exit status
>>>
>>> 15:29|melis at juggle2:~/c/llvmpy> nm ~/llvm/lib/libLLVMCore.a | grep
>>> LLVMContextCreate
>>> 00...