• 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: error: nested functions are disabled
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error: nested functions are disabled


  • Subject: Re: error: nested functions are disabled
  • From: "Ken G. Brown" <email@hidden>
  • Date: Tue, 6 May 2008 16:57:34 -0600

>Date: Tue, 6 May 2008 11:36:08 -0700
>From: "Mark Wagner" <email@hidden>
>Subject: Re: error: nested functions are disabled
><>> For some reason I started getting this error in a project that was compiling fine before I added a couple functions:
>>  error: nested functions are disabled, use -fnested-functions to re-enable
>>
>>  I don't believe I have any nested functions. And commenting out the functions I added does not help.
>
>Odds are you've got a missing close bracket somewhere.

You are absolutely right!
Just found a backwards } in an if statement. Sighhh...
Found it by doing Balance from the Contextual menu to highlight what the compiler thought was the section being enclosed.
I was sure I had done all that before too but somehow missed the nasty little @#!$! :)
Had to step away from it for awhile and come back fresh.

Thx,
Ken

> >  I am also getting lots of warnings like:
>>  warning: incompatible implicit declaration of built-in function 'strncat' when compiling example code.
>>  Can anyone suggest what to look for in order to avoid these warnings?
>
>Perhaps you should #include the header files declaring those functions?
>
>--
Mark Wagner
 _______________________________________________
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: Re: Setting up target dependency
  • Next by Date: Using Xcode 2.5 on Leopard
  • Previous by thread: Re: error: nested functions are disabled
  • Next by thread: XCode vs Ruby
  • Index(es):
    • Date
    • Thread