Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6758993
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T13:52:34+00:00 2026-05-26T13:52:34+00:00

I downloaded a sample code from developer.apple.com called SimpleGestureRecognizer and in the main.m the

  • 0

I downloaded a sample code from developer.apple.com called SimpleGestureRecognizer and in the main.m the program send a fail, because the program does not know the expression @auoreleasepool

The fail is: Unexpected ‘@’ in program.
I searched on the internet, if there is a same problem happens to someone, but there was nobody having the same problem.

Do you know, why this program does not know the expression @autoreleasepool?
My Xcode version is 3.2.6

Thank you for your help and presumptions in forward

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T13:52:34+00:00Added an answer on May 26, 2026 at 1:52 pm

    @autoreleasepool was introduced in LLVM 3.0, the compiler available in Xcode 4.2. Since you’re using Xcode 3.2.6, you have LLVM 1.6 and GCC, neither of which recognises that directive.

    You can change the code to use NSAutoreleasePool instead of @autoreleasepool so that it builds with Xcode 3.2.6. For example, replace:

    @autoreleasepool {
        …
    }
    

    with:

    NSAutoreleasePool *pool = [NSAutoreleasePool new];
    …
    [pool drain];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have downloaded sample code from Apple Center.I also have gone through following question:
I´ve downloaded the UDPEcho sample code from Apple to make a simple UDP connection
http://developer.apple.com/iphone/library/samplecode/TableSearch/index.html I am a just 2 days old in iphone programming. I downloaded the
I'm signed up, I've downloaded sample code, I've got a WSDL...and yet I have
I downloaded the xVal sample project from Steve Sanderson’s blog , run it, and
i have downloaded Swift Mailer from their website and try to send simple email
I have downloaded both samples for the Facebook Developer Kit from Codeplex and Facebook.NET
I'm trying to compile and run the task-android-sample code from Google's API website. I
I have xcode 4 and iphone simulator 4.3. i have downloaded sample project from
Google gave me: http://developer.apple.com/samplecode/LoginItemsAE/index.html And I figured there must be a better way than

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.