Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2013-02

Failed to compile ios-headers from fpc's trunk

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Joost van der Sluis

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.

Reply by email

Jonas Maebe
to Joost van der Sluis
Joost van der Sluis wrote 8 lines
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

Reply by email