Re: Compiler Craziness!
Re: Compiler Craziness!
- Subject: Re: Compiler Craziness!
- From: sinclair44 <email@hidden>
- Date: Sun, 20 Jul 2003 16:21:02 -0400
On 7/20/03 3:52 PM, "Colin Cornaby" <email@hidden> wrote:
>
Ever since I installed the WWDC update for Project Builder (with the
>
new GCC) the compiler gets angry if I don't declare everything at the
>
beginning of the method. Here is the error:
>
>
AppController.m:50: parse error before `*'
>
>
People would just comment that I probably should declare variables at
>
the beginning of a method anyways, but this problem is getting quite
>
annoying because the example code that Apple has (the above error is
>
from WebKit's MiniBrowser) also declares variables midway through a
>
method.
>
>
Any ideas?
If you didn't explicitly tell PB to use GCC 3.3, it defaults to 2.95, which
has this problem. Do "sudo gcc_select 3.1" to use 3.1 as the default; you
can still use 3.3 on an as-needed basis. (This was all detailed in the
readme with the update BTW.)
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.