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
> 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
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
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
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
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.
>> 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
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
> 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
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
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 --
11 matches
Mail list logo