Am Mittwoch, den 06.05.2009, 13:07 +0100 schrieb David Chisnall: > On 4 May 2009, at 21:28, Mike Simmons wrote: > > >> Is your compiler built with Objective-C++ support? This is not the > >> default for building GCC, and many distributions are reluctant to > >> enable it because it is not really maintained by anyone at the > >> moment. Can you compile a simple ObjC++ file? > > > > Is gcc Objective-C++ support distinct from ordinary Objective-C > > support? I can compile and run a simple Objective-C program but not > > an Objective-C++ program. > > Yes, in GCC objc and objc++ are entirely distinct front-ends. This, > unfortunately, means that improvements in one do not always get shared > with the other, and that while objc is almost-unmaintained, objc++ is > completely unmaintained.
Well, if you look at how the front-ends are implemented, objc++ actually links in many of the object files of the objc front end, so most pure objc features/fixes do get shared. Yet objc++ is indeed in need of a maintainer. > > If it is distinct, I suppose I will have to rebuild gcc with the > > appropriate Objective-C++ support flag enabled in the configure stage? > > Yes, you need to add objc++ to the list of languages to enable that > you pass to ./configure. it's spelled obj-c++ ie: --enable-languages=obj-c++ which will implicitly enable c, objc and c++. Cheers, David _______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep
