[LLVMdev] How to call C++ code from LLVM

Felipe Lessa felipe.lessa at gmail.com
Sat Jun 20 07:47:55 PDT 2009


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.



More information about the llvm-dev mailing list