[lldb-dev] Fix external issue

Jean-Daniel Dupas devlists at shadowlab.org
Wed Jul 7 01:45:29 PDT 2010


This patch move the "LLDBVersionNumber" forward declaration outside the method body and explicitly declare it as extern "C" to make sure the compiler properly mangle the symbol reference.

This is required to be able to compile LLDB using a conformed C++ compiler:

http://lists.cs.uiuc.edu/pipermail/cfe-dev/2010-July/009794.html

With this patch, LLBD can be compiled out of the box with clang++ :-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: extern.patch
Type: application/octet-stream
Size: 504 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20100707/5089c475/attachment.obj>
-------------- next part --------------


-- Jean-Daniel




More information about the lldb-dev mailing list