freepooma-devel
[Top][All Lists]
Advanced

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

RE: [pooma-dev] RFA: SGI CC Header Files


From: Julian C. Cummings
Subject: RE: [pooma-dev] RFA: SGI CC Header Files
Date: Fri, 25 May 2001 14:38:22 -0700

I have all of the replacement new-style C header files
for the SGI compiler set up and ready to be checked in.
I tested them by compiling src/Utilities/tests/delete_test1.cpp
under SGI CC.  In order to do this, I had to add the
following two includes to delete_test1.cpp:

#include <cstdlib>  // needed for std::rand()
#include <cstring>  // needed for std::memmove()

So I would propose that you augment whatever patch you
come up with for delete_test1.cpp to also add these
two include statements.  

If I don't hear any objections, I will check in the 
replacement header files for SGI CC sometime over the
weekend.

Thanks, Julian C.



-----Original Message-----
From: Jeffrey Oldham [mailto:address@hidden
Sent: Friday, May 25, 2001 1:11 PM
To: Julian Cummings
Cc: address@hidden
Subject: Re: [pooma-dev] RFA: SGI CC Header Files


On Thu, May 24, 2001 at 07:59:46PM -0700, Julian Cummings wrote:
> Jeffrey,
> 
> This patch seems OK to me.  There is a problem with respect
> to the SGI CC compiler because they do not provide standard
> new-style C headers to wrap C library stuff in the std namespace.
> 
> Michael Aivazis and I once looked into the idea of creating
> replacements for the missing new-style headers.  The most
> straightforward idea is, for example
> 
> // replacement for file <ctime>
> namespace std {
> #include <time.h>
> }
> 
> This works for everything except <cmath>, for very arcane
> reasons.  The successful alternative we came up with is
> 
> // better replacement for file <ctime>
> #include <time.h>
> 
> namespace std {
> // declare items from C library in namespace std
> using ::clock_t;
> using ::time_t;
> // etc. etc.
> }
> 
> We have these files checked into our Caltech VTF
> repository.  If no one objects, I'd like to bring these
> over and put them in a new directory src/arch/SGI.
> Then I can edit the SGIN32CC.conf and SGI64CC.conf
> files and add a -I flag for this platform-specific set
> of include files.  The gcc and KCC compilers can ignore
> these new headers, of course.  This should allow us to
> use new-style C headers and the std namespace in the
> standard way even with the SGI CC compiler.

It's fine with me.

Thanks,
Jeffrey D. Oldham
address@hidden

reply via email to

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