From mboxrd@z Thu Jan 1 00:00:00 1970 Mime-Version: 1.0 (Apple Message framework v753) In-Reply-To: <46721ee70802012043h312ec790qa2dc2092169c8b1a@mail.gmail.com> References: <46721ee70801311622y709a0d6cme651c10d7b749184@mail.gmail.com> <20080201085043.A5A898663@okapi.maths.tcd.ie> <46721ee70802010915o3309a4d2u3acb9d64eeb56611@mail.gmail.com> <46721ee70802012043h312ec790qa2dc2092169c8b1a@mail.gmail.com> Content-Type: multipart/alternative; boundary=Apple-Mail-1-282723576 Message-Id: <942D796B-FE26-43C3-A818-F5797DCB7CD4@mac.com> From: Pietro Gagliardi Subject: Re: [9fans] A newbie question... Date: Fri, 1 Feb 2008 23:57:02 -0500 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Topicbox-Message-UUID: 3f6d3aba-ead3-11e9-9d60-3106f5b1d025 --Apple-Mail-1-282723576 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed C++ has not been included in Plan 9 since the third edition, but the source code is available, and Steve Simon has made some updates. Once you have abaco the way I said to get it, you also have Federico Benavento's contrib system. With it, all you need is contrib/install steve/cfront Otherwise, get contrib with /n/sources/contrib/fgb/root/rc/bin/contrib/install fgb/contrib and then do the above. Then, to compile a C++ program: c++/8c x.C # considering .C is the C++ extension c++/8l -o x x.8 The one thing: don't use #include using namespace std; You will need #include which does that for you. On Feb 1, 2008, at 11:43 PM, Michael Andronov wrote: > Another question from newbie : > > I have noticed some discussion(s) on Internet about C++ language > for Plan9; > I'm wondering what is a bottom line of the story: > - is there a C++ compiler? Any plans for it? > - has it been 'banned' from Plan9? > - has gcc been ported to Plan9? ( as was suggested in one of the > messages I saw)... > > Thank for your attention. > Michael. > --Apple-Mail-1-282723576 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1
C++ has not been included in Plan 9 since the third edition, but = the source code is available, and Steve Simon has made some = updates.

Once = you have abaco the way I said to get it, you also have Federico = Benavento's contrib system. With it, all you need is

= contrib/install steve/cfront

Otherwise, get contrib = with

= /n/sources/contrib/fgb/root/rc/bin/contrib/install fgb/contrib

and then do the = above.=A0Then, to compile a C++ program:

c++/8c = x.C # considering .C is the C++ extension
c++/8l -o = x x.8

The one thing: don't = use

#include = <iostream>
using = namespace std;

You will = need

#include = <iostream.h>

which does that for = you.

On Feb 1, 2008, at 11:43 PM, Michael Andronov = wrote:

Another question from = newbie :

I have noticed some discussion(s) on Internet about C++ = language for=A0 Plan9;
I'm wondering what is a bottom line of the = story:
- is there a C++ compiler? Any plans for it?
- has it = been 'banned' from Plan9?
- has gcc been ported to Plan9? ( as was = suggested in one of the messages I saw)...

Thank for your = attention.
Michael.
=

= --Apple-Mail-1-282723576--