[fpc-devel] Failed to compile ios-headers from fpc's trunk
Jonas Maebe
jonas.maebe at elis.ugent.be
Tue Mar 5 22:42:01 CET 2013
On 16 Feb 2013, at 15:18, Joost van der Sluis wrote:
> 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.
"As packages/cocoaint/utils/Make iPhone Headers.txt" mentions, that conversion script + patches only supports the iOS 3.2 SDK. For newer iOS SDK support, see http://objectivepascal.com/parser/index.html
At one point these may be integrated in FPC's svn. The person who creates the parser scripts even has svn access, but he doesn't use it often unfortunately.
Jonas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20130305/c7836ebc/attachment.html>
More information about the fpc-devel
mailing list