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

iModel.cpp:236:35: error: reference to overloaded function could not be resolved; #8

Open
zeroonead opened this issue Apr 18, 2024 · 2 comments

Comments

@zeroonead
Copy link

`
jni/Android_InlineHook/arm64/model/iModel.cpp:236:35: error: reference to overloaded function could not be resolved; did
you mean to call it?

if (pInfo->pBeHookAddr == open && regs->uregs[0]) {
`

用ndk-r17编译是通过的,但是要用到ndk-r26c版本的一些api,编译的时候就提示这个了,请问要怎么改
if (pInfo->pBeHookAddr == open && regs->uregs[0]) {
这一行让ndk编译通过

@zhuotong
Copy link
Owner

zhuotong commented Apr 18, 2024 via email

@zeroonead
Copy link
Author

zeroonead commented Apr 18, 2024

我发现pInfo->pBeHookAddr == open 这行代码是用来记录日志的,把它注释了,然后编译又报另外的错误了
`
jni/Android_InlineHook/arm64/src/dump_with_ret/../fixPCOpcode.c:326:8: error: incompatible pointer to integer conversion
assigning to 'uint64_t' (aka 'unsigned long') from 'void *' [-Wint-conversion]
pc = pstInlineHook->pBeHookAddr; //pc变量用于保存原本指令执行时的pc值

jni/Android_InlineHook/arm64/src/dump_with_ret/../fixPCOpcode.c:327:8: error: incompatible pointer to integer conversion
assigning to 'uint64_t' (aka 'unsigned long') from 'void *' [-Wint-conversion]
lr = pstInlineHook->pBeHookAddr + pstInlineHook->backUpLength;
`

请问要怎么修改这两行,让编译通过,或者可以更新一下代码,让高版本的ndk也编译通过吗

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