Displaying 4 results from an estimated 4 matches for "pablogreen".
Did you mean:
pablogreco
2009 Jun 20
1
[LLVMdev] How to call C++ code from LLVM
On Sat, Jun 20, 2009 at 07:17:50AM -0700, pablogreen wrote:
> Normally in C++ I do this:
> g++ -fPIC -c mylib.c
> g++ -shared -o libmylib.so mylib.o
Try compiling with GCC in C mode because C++ mangles the names
(e.g. to support overloading).
--
Felipe.
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>
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