• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: confusing error
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: confusing error


  • Subject: Re: confusing error
  • From: Greg Guerin <email@hidden>
  • Date: Sat, 27 Sep 2008 18:14:51 -0700

Roland Silver wrote:

int foobar(void) {return 0; }
error: nested functions are disabled, use ...
error: static declaration of 'foobar' follows non-static declaration

Aa "nested functions are disabled" error is often due to a missing } somewhere prior. A spurious { will also cause this error.


Check your headers, such as Notify.h or Mark.h, though it might be any of the imported .h's in Notify.m. I'd use the matching-brace selection feature of Xcode's editor to test each { and }.

  -- GG

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: confusing error
  • Next by Date: Re: Working-around a Symbol Conflict
  • Previous by thread: confusing error
  • Next by thread: Interface Builder problem
  • Index(es):
    • Date
    • Thread