Re: build errors
Re: build errors
- Subject: Re: build errors
- From: Chris Espinosa <email@hidden>
- Date: Tue, 31 May 2005 21:56:19 -0700
On May 31, 2005, at 8:25 PM, D. Walsh wrote: Source/AIMessageTabView.m:55: error: wrong type argument to unary minus Source/AIMessageTabView.m:55: error: parse error before ':' token
Here is the code from at line 55 that seems to be generating the error.
- (void)displayTopTabs:(BOOL)value { displayTopTabs = value; //the next time we are told to draw, we will only draw our top tabs (if YES) }
I moved the source back to 10.3.9 and it builds without any problems.
My bet is that your machine thinks a .m file is C/C++, not Objective C. It thinks you're trying to take the unary negation of the member function declaration. In 10.4 I've set the target to 10.3, selected the 10.3.9 SDK but it still gives this error.
Anyone know how to fix this?
Look to see if any -x parameters are being passed to gcc in your build transcript that would override gcc's native handling of .m files. As a side question, how do I get XCode to use gcc 3.3 instead of gcc 4.0?
Two ways: one local to the target, one global to the machine.
The local way is Get Info on the target, click the Rules tab, scroll down to System C/C++ rule, and choose it there.
The global way is $sudo gcc_select 3.3
in Terminal.
Chris
|
_______________________________________________
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