Re: Objective-C or C++ or something...
Re: Objective-C or C++ or something...
- Subject: Re: Objective-C or C++ or something...
- From: Marc Weil <email@hidden>
- Date: Thu, 07 Aug 2003 16:38:07 -0400
Make sure your compiler is set to GCC 3.1 and not GCC 2.95 in PB's build
settings.
- Marc Weil
On 8/7/03 3:58 PM, "Seth Willits" <email@hidden> wrote:
>
My compiler either just started, or I just noticed, complaining if I
>
declare a variable in the middle of a routine. All of the examples I
>
see and the code I have does this, so obviously it's some kind of
>
setting, but I can't find it anywhere. Could someone tell me how to fix
>
this?
>
>
This works:
>
>
-(void)blah
>
{
>
int helloThere;
>
NSBeep();
>
helloThere = 3;
>
}
>
>
>
>
This doesn't:
>
>
-(void)blah
>
{
>
NSBeep();
>
int helloThere;
>
helloThere = 3;
>
}
>
>
>
Thanks,
>
>
>
Seth Willits
>
------------------------------------------------------------------------
>
---
>
President and Head Developer of Freak Software - http://www.freaksw.com
>
Q&A Columnist for REALbasic Developer Magazine -
>
http://www.rbdeveloper.com
>
Webmaster for REALbasic Game Central - http://www.freaksw.com/rbgames
>
>
"One day you'll be wandering through the darkness looking for guidance,
>
inspiration, and your purpose in life, and the next you'll turn around
>
and realize they've been standing right next to you the whole time."
>
-- Seth Willits
>
------------------------------------------------------------------------
>
---
>
_______________________________________________
>
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.
_______________________________________________
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.