discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with GNUstep and Objective-C++


From: David Ayers
Subject: Re: Problem with GNUstep and Objective-C++
Date: Thu, 07 May 2009 06:56:35 +0000

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]