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

Visual Studio 2019 build failed #1

Open
panovr opened this issue Mar 7, 2020 · 6 comments
Open

Visual Studio 2019 build failed #1

panovr opened this issue Mar 7, 2020 · 6 comments

Comments

@panovr
Copy link

panovr commented Mar 7, 2020

I tried call_thunk with Visual Studio 2019 with some errors.
May you try to build call_thunk with Visual Studio 2019?
Thanks!

@znone
Copy link
Owner

znone commented Mar 13, 2020

The Makefile in the project directory is designed for GCC under Linux. If you use Visual Studio, you should refer to the Makefile in the directory sample\window, or create a Visual Studio solution.You just need to add call_thunk.cpp/call_thunk.h to your project.

@panovr
Copy link
Author

panovr commented Mar 16, 2020

I also tried g++ with Ubuntu 18.04, but get some errors when compiling thunk_code_x64.cpp.

@znone
Copy link
Owner

znone commented Mar 18, 2020

Please use call_thunk.cpp, which generates libthunk.so.

@panovr
Copy link
Author

panovr commented Mar 20, 2020

It seems that call_thunk.cpp includes "call_thunk.h", and call_thunk.h includes thunk_code_x64.cpp.

@znone
Copy link
Owner

znone commented Mar 20, 2020

thunk_code_x64.cpp and thunk_code_x86.cpp are implementations of thunk_code.cpp.

@ruoleng
Copy link

ruoleng commented Dec 31, 2021

I tried call_thunk with Visual Studio 2019 with some errors. May you try to build call_thunk with Visual Studio 2019? Thanks!
Modify the "thunk_code_x64.cpp"file from

struct thunk_code .....

to

#include "call_thunk.h"

namespace call_thunk {
	struct thunk_code .....
}

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

3 participants