Displaying 3 results from an estimated 3 matches for "my_lib_head".
Did you mean:
my_lib_header
2009 Jun 20
0
[LLVMdev] How to call C++ code from LLVM
Sorry could you help me? I have problem with using LLVM and some code in C
(.so file)
I want to use (simply example):
mylib.c:
#include <stdio.h>
void printString(char *str) {
printf("%s", str);
}
mylib.h:
#ifndef MY_LIB_HEADER
#define MY_LIB_HEADER
void printString(char* X);
#endif
///////////////////////////////////////
Normally in C++ I do this:
g++ -fPIC -c mylib.c
g++ -shared -o libmylib.so mylib.o
(and after that :
g++ -Wall -g -o prog.exe prog.c -I./ -lmylib -L./
LD_LIBRARY_PATH=/home/mylinux/Deskt...
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>