Displaying 3 results from an estimated 3 matches for "00001bc0".
Did you mean:
00001b0
2009 Sep 15
3
[LLVMdev] C API linking problem
...-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
...> --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 -W -Wall -o blah `llvm-config --cflags --libs all --ldflags`
--
Óscar
2009 Sep 15
0
[LLVMdev] C API linking problem
...Kp.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 -W -Wall -o blah `llvm-config --cflags --libs all --ldflags`
>
> Are you sure that's what you meant? Now the linker can't find anything
> anymore and I get tons of unresolved symbols.
That is because -L come...