Linking libraries

63 views
Skip to first unread message

Manuel

unread,
Jun 29, 2011, 3:42:04 PM6/29/11
to llvm-py: Python Bindings for LLVM
Hi,

I compiled a C++ file into llvm assembler using llvm-gcc-4.2 and
loaded the llvm assembler file using llvm.core.Module.from_assembly().
When I call a function from this module, I get this error:
LLVM ERROR: Could not resolve external global address: _ZSt4cout

Probably I have to link libstdc++ into my module, but how do I do
that? llvm has a function called LinkInLibrary(), but is this function
available from the Python interface?

Cheers,

Manuel
Reply all
Reply to author
Forward
0 new messages