|
From: | Andreas Höschler |
Subject: | Re: Porting to 64Bit -descriptionForInstanceMethod: |
Date: | Tue, 18 Jun 2019 17:20:55 +0200 |
Hi David,
That’s great!
struct objc_method_description methodDesc = protocol_getMethodDescription(_protocol, aSelector, YES, YES); types = methodDesc.types; This works great as long as I build with -m32. But as soon as I switch to ... ADDITIONAL_OBJCFLAGS += -m64 -Wno-deprecated-declarations -Wno-deprecated -Wno-format-security ADDITIONAL_CFLAGS += -m64 ADDITIONAL_LDFLAGS += -m64 … in GNUmakefile I get Compiling file SRProxy.m ... ~~ ^~~~~~~~~~~~~ %lu (unsigned long) SRProxy.m:425:54: warning: implicit declaration of function 'protocol_getMethodDescription' is invalid in C99 [-Wimplicit-function-declaration] struct objc_method_description methodDesc = protocol_getMethodDescription(_protocol, aSelector, YES, YES); ^ SRProxy.m:425:41: error: variable has incomplete type 'struct objc_method_description' struct objc_method_description methodDesc = protocol_getMethodDescription(_protocol, aSelector, YES, YES); ^ SRProxy.m:425:17: note: forward declaration of 'struct objc_method_description' struct objc_method_description methodDesc = protocol_getMethodDescription(_protocol, aSelector, YES, YES); ^ Any idea why this works for 32bit code only. I am currently trying to build this on MacOSX 10.10. MacOSX 10.12 gave the same error!? :-( Thanks so much, Andreas |
[Prev in Thread] | Current Thread | [Next in Thread] |