Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fxb-cocacoding opened this issue Nov 24, 2022 · 1 comment
Open

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

fxb-cocacoding opened this issue Nov 24, 2022 · 1 comment
Labels

Comments

@fxb-cocacoding
Copy link

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>.

@matrosov matrosov added the bug label Jan 2, 2023
@nicolaipre
Copy link

nicolaipre commented Aug 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants