On Oct 28, 2009, at 9:24 AM, Jean-Daniel Dupas wrote:
AFAIK, you can't use block in a 10.5 binary as the compiler will
generate strong references to symbols not present in the 10.5
runtime (libSystem for instance).
If you want to have two code paths, you have to move the code that
uses block in a bundle and load it at runtime.
That's such serious bad news that it seems like it ought to be
documented very prominently. Do you know of any documentation? I'll
watch the WWDC video, where I assume they would say something about
I'm not aware of any doc about it, but that's what clang says at least:
clang -mmacosx-version-min=10.5 -o block block.c
block.c:5:2: error: blocks support disabled - compile with -fblocks or
pick a deployment target that supports them
and even with -fblocks, nm show that the block runtime symbols are not
defined as weak.
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden