From: Buckley, Bob CTR MDA/IC (bob.buckley.ctr++at++mda.mil)
Date: 02/07/2006 10:36:51
Classification: UNCLASSIFIED
Caveats: NONE
I tried posting last week concerning an Irix and Linux compiler issue that's apparently looming.
We've been migrating from the Irix 7.2.1 compiler to the 7.4.3 and most recently 7.4.4.
In our migrations we've had to account for whatever SGI did in the 7.2.1 headers (appears as if a Windows programmer got let loose in there). I shant elaborate.
For 7.4.3 we've migrated the normal library headers (e.g., math.h, stdio.h, stdlib.h, etc.) to the new ANSI C++ standard header files (cmath, cstdio, cstdlib) and the normal streams library header files (iostream.h, fstream.h, etc.) to the standard library versions of stream header files (iostream, fstream, etc).
7.2.1 & 7.4.3 work fine with conditional compiles.
For 7.4.4, it looks like a ton more work has been done in the header files.
So, I ran smack dab into hard coded 3rd party includes.
Performer includes math.h, which isn't compatible with cmath and our compiles barfed.
In order to get 7.4.4 to compile I backed out the standard ANSI C++ files and compile equivalent to 7.2.1.
Well, this broke streams when attempting to load up the non-std versions (iostream.h, fstream.h, etc.)
I can't figure out why it's not instantiating/seeing things like template function 'getline' in the 'string' header file. I can't even get Stroustrup's simple examples to compile (pg51, 3rd ed) under 7.4.4:
#include <iostream.h>
#include <string>
using std::string;
using std::getline;
main()
{
string str;
getline(cin, str); // <-- getline function not seen by the compiler
}
So,I include the streams objects in namespace std (iostream, fstream, etc) and include the other ANSI C++ files outside std (math.h, stdio.h, etc).
However, long term, I've been told that for gcc v3.4 and above, normal header files such as math.h are gone altogether in order to facilitate ANSI C++ conformation.
Anybody have any more info on this stuff?
Allan, you guys looked into this any?
Thanks
'Bwana' Bob Buckley
Raytheon
Colorado Springs
-----Original Message-----
From: owner-info-performer++at++performer.engr.sgi.com
[mailto:owner-info-performer++at++performer.engr.sgi.com]On Behalf Of Jason
Daly
Sent: Tuesday, February 07, 2006 9:08 AM
To: Allan Schaffer
Cc: info-performer++at++sgi.com
Subject: Re: [info-performer] Experience with Performer on 64bit gcc
4.xx systems
Allan Schaffer wrote:
>
> We haven't tried gcc4 yet but are starting to see some queries about
> it. If you know, have the distributions picked it up officially yet
> or is it still something that people have to grab & compile on their own?
>
Fedora core 4 uses it by default, and it's been around long enough that
FC5 will be out soon. Even Red Hat Enterprise 4 had a "preview" release
packaged with it.
----"J"
"I'm a castaway stranded in a desolate land, I can see the footprints in the virtual sand." --Neil Peart
----------------------------------------------------------------------- List Archives, Info, FAQ: http://www.sgi.com/software/performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com -----------------------------------------------------------------------
Classification: UNCLASSIFIED Caveats: NONE
This archive was generated by hypermail 2b29 : Tue Feb 07 2006 - 10:36:57 PST