I see this a lot. I've worked around it by adding an include of lldb/Symbol/ClangNamespaceDecl.h in each file that gets this error. For some reason Clang accepts this, but Gcc and MS VC both complain.
-Dawn On Thu, Apr 12, 2012 at 05:06:52PM +0530, Mool Chand Tyagi wrote: > Hello, > > With latest LLDB build, i am getting the below error regarding > incomplete type in Clang: > > --- > In file included from > /home/mtyagi/lldb/llvm_latest/llvm/include/llvm/ADT/StringRef.h:15: > In file included from > /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/../../../../../include/c++/4.5/utility:70: > /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/../../../../../include/c++/4.5/bits/stl_pair.h:77:11: > error: field has incomplete type > 'lldb_private::ClangNamespaceDecl' > _T2 second; ///< @c second is a copy of the second object > ^ > /usr/lib/i386-linux-gnu/gcc/i686-linux-gnu/4.5/../../../../../include/c++/4.5/bits/stl_tree.h:383:26: > note: in instantiation of template class > 'std::pair<std::tr1::shared_ptr<lldb_private::Module>, > lldb_private::ClangNamespaceDecl>' requested here > get_allocator().destroy(&__p->_M_value_field); > -- > > However, the build i tried two weeks back was building successfully. > > thanks, > Tyagi > _______________________________________________ > lldb-dev mailing list > [email protected] > http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev _______________________________________________ lldb-dev mailing list [email protected] http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
