[lldb-dev] Linking issue missing init_lldb() - linux

Jean-Daniel Dupas devlists at shadowlab.org
Fri Jun 11 14:16:38 PDT 2010

Le 11 juin 2010 à 22:41, root at hbbrbasic.com a écrit :

> Hi,
>  While building lldb driver I ran into the missing init_lldb() in 
> ScriptInterpreterPython.cpp.
> Seems that lldb_private::Initialize() is the right function to call and 
> I just wanted to confirm that.
>  The other minor issue is the missing LLDBVersionNumber but that is 
> easily taken care of.
> Cheers,
> Pawel

From a previous discussion at http://lists.cs.uiuc.edu/pipermail/lldb-dev/2010-June/000039.html

> source/Interpreter/ScriptInterpreterPython.cpp:
> My build doesn't define init_lldb anywhere; I have no idea where the
> definition is supposed to be.
This comes from the file cpp file that is generated by swig when run on the ABI sources.

This is done by a shell script build phase in the Xcode project that essentially does a:

cd scripts
sh ./build-swig-wrapper-classes.sh lldb.swig ../source/LLDBWrapPython.cpp

The init_lldb ends up being in the LLDBWrapPython.cpp

Read this answer too, it may be interesting:


-- Jean-Daniel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20100611/bf2611d2/attachment.html>

More information about the lldb-dev mailing list