• 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: 'for' loop initial declaration used outside C99 mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 'for' loop initial declaration used outside C99 mode


  • Subject: Re: 'for' loop initial declaration used outside C99 mode
  • From: Philippe Wicker <email@hidden>
  • Date: Sun, 26 Jan 2003 14:07:48 +0100

On Sunday, January 26, 2003, at 01:31 PM, Vigour Vigour wrote:

I get this error message all the time when trying to build. What does this really mean?

'for' loop initial declaration used outside C99 mode


If you are using CW 8 and if your source file is a C file, you can switch on the "enables C99" flags in the compiler prefs panel. If you are using PB, I don't know how to switch to C99 standard for C files. My source files are written in C++ (file extension cpp), so PB automatically launches the C++ compiler which understands this syntax. In C++, you may always declare a local variable at the moment you need it and not necessarily at the beginning of a block of code. Additionally, C++ compilers are stricter than C compilers and allow to catch more errors at compilation stage.


Philippe Wicker
email@hidden
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >'for' loop initial declaration used outside C99 mode (From: "Vigour Vigour" <email@hidden>)

  • Prev by Date: Re: 'for' loop initial declaration used outside C99 mode
  • Next by Date: MOTU Fastlane USB driver/interface
  • Previous by thread: Re: 'for' loop initial declaration used outside C99 mode
  • Next by thread: Re: 'for' loop initial declaration used outside C99 mode
  • Index(es):
    • Date
    • Thread