Re: [9fans] source header question

2010-08-21 Thread erik quanstrom
On Fri Aug 20 17:59:16 EDT 2010, lyn...@orthanc.ca wrote: > >> Should any program which can run under p9p and plan9 ever be compiled with > >> g++ or another c++ compilers? Otherwise is it necessary to check for > >> __cplusplus? > > C is a subset of C++, so a C++ program can validly include nati

Re: [9fans] source header question

2010-08-20 Thread Russ Cox
> I noticed that some of the plan9port .h files have "extern C" C++ compiler > directives: > > #if defined(__cplusplus) > extern "C" { > #endif > ... > > Is this actually necessary since I thought C++ was not supported in Plan > 9, et al. They're for compiling mpm. Russ

Re: [9fans] source header question

2010-08-20 Thread EBo
Iruatã, Thanks for following up. Your example demonstrates that it is possible, and maybe even desirable, to work in this way. So, I know to deal with it appropriately. Thanks again. EBo -- > % g++ -I$PLAN9/include -c a.cc && g++ -o a a.o $PLAN9/lib/libgeometry.a > % a > 1 > 1 > 2 > > wi

Re: [9fans] source header question

2010-08-20 Thread Iruatã Souza
On Fri, Aug 20, 2010 at 5:41 PM, EBo wrote: > > >> i guess you answered that yourself. does p9p run on Plan 9? > > There a plenty of programs which are made to run under both p9p and plan9. > So, no the question is still open, but I will rephrase it. > > Should any program which can run under p9p

Re: [9fans] source header question

2010-08-20 Thread Devon H. O'Dell
I meant my understanding was that Sun's compiler is a C++ compiler. As Lyndon points out, C is a subset. I may be wrong, but it can't possibly hurt to leave it in. Any c++ compiler should be able to compile it. On Aug 20, 2010 6:00 PM, "Lyndon Nerenberg" wrote: >>> Should any program which can ru

Re: [9fans] source header question

2010-08-20 Thread Lyndon Nerenberg
Should any program which can run under p9p and plan9 ever be compiled with g++ or another c++ compilers? Otherwise is it necessary to check for __cplusplus? C is a subset of C++, so a C++ program can validly include native C code.

Re: [9fans] source header question

2010-08-20 Thread EBo
>> Should any program which can run under p9p and plan9 ever be compiled >> with >> g++ or another c++ compilers?  Otherwise is it necessary to check for >> __cplusplus? > > I think it may be for Sun compilers. Thanks Devon, Is there anyone who can verify it? I gave away my old Sun workstatio

Re: [9fans] source header question

2010-08-20 Thread Devon H. O'Dell
2010/8/20 EBo : > > >> i guess you answered that yourself. does p9p run on Plan 9? > > There a plenty of programs which are made to run under both p9p and plan9. > So, no the question is still open, but I will rephrase it. > > Should any program which can run under p9p and plan9 ever be compiled wi

Re: [9fans] source header question

2010-08-20 Thread EBo
> i guess you answered that yourself. does p9p run on Plan 9? There a plenty of programs which are made to run under both p9p and plan9. So, no the question is still open, but I will rephrase it. Should any program which can run under p9p and plan9 ever be compiled with g++ or another c++ compi

Re: [9fans] source header question

2010-08-20 Thread Iruatã Souza
On Fri, Aug 20, 2010 at 3:29 PM, EBo wrote: > > I noticed that some of the plan9port .h files have "extern C" C++ compiler > directives: > > #if defined(__cplusplus) > extern "C" { > #endif > ... > > Is this actually necessary since I thought C++ was not supported in Plan > 9, et al. > > Just chec

[9fans] source header question

2010-08-20 Thread EBo
I noticed that some of the plan9port .h files have "extern C" C++ compiler directives: #if defined(__cplusplus) extern "C" { #endif ... Is this actually necessary since I thought C++ was not supported in Plan 9, et al. Just checking... EBo --