call_thunk icon indicating copy to clipboard operation
call_thunk copied to clipboard

Visual Studio 2019 build failed

Open panovr opened this issue 4 years ago • 6 comments

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

panovr avatar Mar 07 '20 04:03 panovr

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.

znone avatar Mar 13 '20 01:03 znone

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

panovr avatar Mar 16 '20 13:03 panovr

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

znone avatar Mar 18 '20 01:03 znone

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

panovr avatar Mar 20 '20 00:03 panovr

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

znone avatar Mar 20 '20 09:03 znone

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

ruoleng avatar Dec 31 '21 06:12 ruoleng