[fpc-devel] Failed to compile ios-headers from fpc's trunk

Joost van der Sluis joost at cnoc.nl
Sat Feb 16 15:18:19 CET 2013


Hi all,

When I try to parse & compile the ios-headers as supplied in cocoaint/utils, I get the following error:

NSEnumerator.inc(18,18) Fatal: Syntax error, ";" expected but "identifier __UNSAFE_UNRETAINEDPTR" found

The offending code is: 
function countByEnumeratingWithState_objects_count(state: NSFastEnumerationStatePtr; buffer: id __unsafe_unretained; len: NSUInteger): NSUInteger;

Apparently the parser does not handle the __unsafe_unretained identifier properly. I used fpc-trunk and the ios 5.1 sdk. 

I know that there are other versions of the ios-headers available that do work, but what is the status of the version in fpc-trunk? Is it useable? And should it be used?

Joost.



More information about the fpc-devel mailing list