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

Undefined symbols for architecture arm64: #13

Closed
H0meDev opened this issue Dec 4, 2017 · 1 comment
Closed

Undefined symbols for architecture arm64: #13

H0meDev opened this issue Dec 4, 2017 · 1 comment

Comments

@H0meDev
Copy link

H0meDev commented Dec 4, 2017

编译基于HookZz的tweak的时候报错:
Undefined symbols for architecture arm64:
"ZzBuildHook(void*, void*, void**, void ()(_RegState, _ThreadStack*, _CallStack*), void ()(_RegState, _ThreadStack*, _CallStack*), bool)"

分享一下解决办法,即给hookzz加上一个C函数声明:

#ifdef __cplusplus
extern "C" {
#endif //__cplusplus

// hookzz 函数列表

#ifdef __cplusplus
}
#endif //__cplusplus

@jmpews
Copy link
Owner

jmpews commented Dec 4, 2017

是的, 对于 .cpp 以及 .mm 的编译是需要加上这个的.

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