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

ubuntu18.0 上使用老报错 #2

Closed
dsasdfsdff12312312 opened this issue Jan 16, 2023 · 3 comments
Closed

ubuntu18.0 上使用老报错 #2

dsasdfsdff12312312 opened this issue Jan 16, 2023 · 3 comments

Comments

@dsasdfsdff12312312
Copy link

decodeAndRun.cpp:13:16: error: ‘VirtualAllocExNuma’ was not declared in this scope; did you mean ‘VirtualAllocEx’?
13 | LPVOID addr = VirtualAllocExNuma(GetCurrentProcess(), NULL, sizeof(Ciphertext), MEM_COMMIT, PAGE_READWRITE, 0);
| ^~~~~~~~~~~~~~~~~~
| VirtualAllocEx
/Shipwreck/Output# x86_64-w64-mingw32-gcc -m64 -s -w -o temp.exe decodeAndRun.cpp
x86_64-w64-mingw32-gcc: fatal error: cannot execute ‘cc1plus’: execvp: No such file or directory

@Awrrays
Copy link
Owner

Awrrays commented Jan 16, 2023

具体截图发一下

@dsasdfsdff12312312
Copy link
Author

image
image
image

这是我遇到的集中情况

@Awrrays
Copy link
Owner

Awrrays commented Jan 18, 2023

两种方案
1、在Ubuntu使用, 在decodeAndRun.cpp中引入#include <winbase.h>,该头文件包含VirtualAllocExNuma函数
2、在Windows使用,在https://github.com/Awrrays/Shipwreck/releases/download/1.0/x86_64-12.2.0-release-win32-seh-rt_v10-rev1.7z下载mingw for windows
推荐第二种,因为我只在windows和mac上测试过,ubuntu上可能会有其他的问题

@Awrrays Awrrays closed this as completed Mar 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants