Re: Objective-C or C++ or something...
Re: Objective-C or C++ or something...
- Subject: Re: Objective-C or C++ or something...
- From: Tom Sutcliffe <email@hidden>
- Date: Fri, 8 Aug 2003 01:43:08 +0100
On Thursday, August 7, 2003, at 11:01 pm, M. Uli Kusterer wrote:
At 22:29 Uhr +0100 07.08.2003, Alastair J.Houghton wrote:
Anyway, Seth's problem is that he's building with GCC 2.95, probably
because he installed the new developer tools (either separately or as
part of XCode). Project Builder gets confused and runs 2.95 instead
of 3.3 or 3.1 unless you explicitly set a load of variables in your
target's Expert Settings view (the release notes for the new
developer tools say what you have to do; from what I remember, you
set GCC_VERSION to 3.3, CC to /usr/bin/gcc-3.3, and CPLUSPLUS to
/usr/bin/g++-3.3).
Setting GCC_VERSION should suffice. PB will take care of the rest.
However I don't think the default standard in gcc 3.1 (gnu89) permits
things like
for (int x = 0; ...) { ... }
even though it allows declarations in the middle of normal blocks of
code. To get the above to work, you'll need to add
std=gnu99
to the "other c compiler flags" box. And it goes without saying that
setting GCC_VERSION to 3.3 if you haven't installed Xcode won't help
much :)
Regards,
Tom
_______________________________________________
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.