facebook / fishhook

A library that enables dynamically rebinding symbols in Mach-O binaries running on iOS.
BSD 3-Clause "New" or "Revised" License
5.17k stars 965 forks source link

Build Error in Objective-c++ #57

Closed iOkay closed 5 years ago

iOkay commented 5 years ago

Env: xcode 10.1 c++ setting: image

I added the test code to main.mm file, and builded failed. Error as follow: "Cannot initialize a member subobject of type 'void *' with an lvalue of type 'int (int)'" image

iOkay commented 5 years ago

Should wrote like this:

{"close", (void *)my_close, (void **)&orig_close},
{"open", (void *)my_open, (void **)&orig_open},

Converting type must be explicit.