简体   繁体   中英

Compiling GCDAsyncSocket for OS X 10.6

I have troubles with compiling this wonderful TCP library with SDK 10.6.

I get:

/Users/cisary/Desktop/AI/AI/TCP/GCDAsyncSocket.m:185:11: error: instance variables may not be placed in class extension
        uint32_t flags;
                 ^
/Users/cisary/Desktop/AI/AI/TCP/GCDAsyncSocket.m:186:11: error: instance variables may not be placed in class extension
        uint16_t config;

What does instance variables may not be placed in class extension mean?

Are you attempting to compile for i386? That will not work with GCDAsyncSocket.m as I'm finding it on github. Instance variables defined in class extensions are a modern runtime feature. Try compiling for x86_64.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM