[cfe-dev] blocks/lambdas in clang
Blaine Garst
blaine at apple.com
Tue Jan 12 13:26:50 PST 2010
The compiler initializes the first word of every block to one of two symbols (the other being _NSConcreteStackBlock), that being one of them, so as to enable Objective-C treating blocks as objects if and when the objc runtime is loaded. The blocks runtime for the most part ignores these values until such a time. A block copy operation will use another symbol, so in total I think you'll need _NSConcreteMallocBlock also.
Blaine
On Jan 12, 2010, at 11:15 AM, david raila wrote:
>
> Trying blocks on a x64 linux gives undefined reference to
> `_NSConcreteGlobalBlock', am I missing a library
> or something?
>
> Alternatively, what are the plans/timetable for an implementation of
> C++0x lambdas in clang?
>
> Thanks.
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100112/18da2495/attachment.html>
More information about the cfe-dev
mailing list