Displaying 3 results from an estimated 3 matches for "cclah0mg".
2009 Jun 20
0
[LLVMdev] How to call C++ code from LLVM
...ibmylib.so mylib.o
(and after that :
g++ -Wall -g -o prog.exe prog.c -I./ -lmylib -L./
LD_LIBRARY_PATH=/home/mylinux/Desktop/test ./prog.exe)
My program I compile like this:
$ llvm-as -f prog.ll
$ llc -march=x86-64 prog.bc -f
but I have error after:
$ g++ -o prog prog.s -I./ -L./ -lmylib
/tmp/ccLAh0mg.o: In function `main':
asd.bc:(.text+0xd): undefined reference to `printString'
collect2: ld returned 1 exit status
in .bc file i have something like that:
; ModuleID = 'xyz'
internal constant [5 x i8] c"ello\00" ; <[5 x i8]*>:0 [#uses=1]
declare void @printInt(i...
2009 Jun 19
0
[LLVMdev] How to call C++ code from LLVM
On Thu, Jun 18, 2009 at 3:57 PM, Jules Jacobs<julesjacobs at gmail.com> wrote:
> How can I call C++ libraries (LLVM & Qt for example) from a language that's
> implemented on top of LLVM?
You can call them the same way a C++ file compiled with llvm-g++ would
call them. Essentially, it's complicated enough that you probably
don't want to do it for any interface of
2009 Jun 18
3
[LLVMdev] How to call C++ code from LLVM
Hi,
How can I call C++ libraries (LLVM & Qt for example) from a language that's
implemented on top of LLVM?
Thanks,
Jules
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090619/4621508b/attachment.html>