Re: Cannot declare variables in the middle anymore
Re: Cannot declare variables in the middle anymore
- Subject: Re: Cannot declare variables in the middle anymore
- From: Lorenzo <email@hidden>
- Date: Tue, 08 Jul 2003 17:43:52 +0200
Hi,
thanks to everybody. I entered "sudo gcc_select 3" in the terminal and now
everthing compiles fine.
Anyway, I presumed that if PB settings say "compile using gcc 3.1", PB
should use that version, even if XCode did set the gcc 3.3 as default.
Again, thank you.
Best Regards
--
Lorenzo
email: email@hidden
>
From: "Alastair J.Houghton" <email@hidden>
>
Date: Tue, 08 Jul 2003 14:40:42 +0100
>
To: Lorenzo <email@hidden>
>
Cc: Robert Tillyard <email@hidden>, email@hidden
>
Subject: Re: Cannot declare variables in the middle anymore
>
>
> Amazing!!!
>
> I have been developing software on Cocoa since 2001.... and I was
>
> always
>
> able to declare variables in the middle of the methods. I have
>
> thousands of
>
> lines of code with variables declared in the middle of the method. For
>
> sure!
>
> And it worked very well.
>
> And even if I upgraded from OS X 10 throught 10.2.6 and from the first
>
> to
>
> the last version of Developer Tools, I was able to do that all the
>
> time.
>
> What should I think? Maybe I have to mark some check-box?
>
> Maybe in my machine something has been corrupted?
>
>
You've accidentally switched to gcc 2.95 in Project Builder; this
>
happens when you install XCode or the GCC 3.3 update (check the release
>
notes for the GCC 3.3 update for more information on how to use GCC 3.3
>
from Project Builder if that was what you wanted to do). To change
>
back to GCC 3.1, go to a terminal window and enter "sudo gcc_select
>
3.1". Your builds should start working again (you might have to
>
restart Project Builder).
>
>
(GCC 3 and later support declarations in the middle of a function, just
>
like in C++. GCC 2.95 didn't, which is why you get the error.)
>
>
Kind regards,
>
>
Alastair.
_______________________________________________
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.