REhints / HexRaysCodeXplorer

Hex-Rays Decompiler plugin for better code navigation
2.41k stars 389 forks source link

GCC11 compilation error with IDA Pro 8.1 / SDK8.1 #109

Open fxb-cocacoding opened 2 years ago

fxb-cocacoding commented 2 years ago

Hey,

the current version is not compiling with GCC 11. The following patch can mitigate the issue:

diff --git a/src/HexRaysCodeXplorer/TypeReconstructor.cpp b/src/HexRaysCodeXplorer/TypeReconstructor.cpp
index 4cc71f8..f84afc3 100644
--- a/src/HexRaysCodeXplorer/TypeReconstructor.cpp
+++ b/src/HexRaysCodeXplorer/TypeReconstructor.cpp
@@ -28,6 +28,7 @@

 #include "Debug.h"
 #include "Utility.h"
+#include <memory>

 #if !defined (__LINUX__) && !defined (__MAC__)
 #include <tchar.h>
@@ -742,4 +743,4 @@ bool idaapi reconstruct_type(const reconstruct_type_params_t & params)
        }

        return reconstruct_type(cfunc, params.var_name, params.type_name);
-}
\ No newline at end of file
+}

The file TypeReconstructor.cpp is missing the import #include <memory>.

nicolaipre commented 1 year ago

Can confirm the patch* also works on IDA Pro 8.3 / SDK 8.3