[lldb-dev] strncmp() compiler issue in source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp
sales
sales at hobby-robotics.com
Tue Jul 6 18:53:34 PDT 2010
Hi,
On ubuntu gcc-4.4.3 has an issue with strncmp() in
source/Plugins/SymbolFile/DWARFDWARFDefines.cpp.
The quick fix is to add #include <string.h> in addtion to the #include
<string> .
Better way might be to avoid the strncmp() and use string::compare()
Thanks,
Pawel
-------------------------cut here K
----------------------------------------------------------------
Index: DWARFDefines.cpp
===================================================================
--- DWARFDefines.cpp (revision 107733)
+++ DWARFDefines.cpp (working copy)
@@ -10,6 +10,7 @@
#include "DWARFDefines.h"
#include <stdio.h>
#include <string>
+#include <string.h>
#include "lldb/Core/ConstString.h"
namespace lldb_private {
More information about the lldb-dev
mailing list