From: David Donald Hooton <ddh@shell01.TheWorld.com>
Subject: Re: cxx -std strict_ansi and C header files
Date: Tue, 20 Jan 2004 07:40:42 +0000 (UTC) [thread overview]
Message-ID: <buim1q$m7o$1@pcls4.std.com> (raw)
In-Reply-To: Iy1Pb.3997$ce2.3248@okepread03
Bryan Walsh <simguy@cox.net> wrote:
> I've been playing around with the -std strict_ansi flag with cxx version
> 6.5. One thing that it does, besides changing the way the standard
> header files (iostream,cmath,etc) work, is that it also affects a
> number of other header files in weird ways...
> Has anybody else experienced these difficulties? Does anybody have any
> workarounds?
I ran into these when I worked in the HP Tru64 group. One thing to
remember is that certain system functions or header files are only
supported under certain standards. A later-edition POSIX function may
simply not be available for strict_ansi, which implies an earlier
standard. One work-around could be to hack up your own versions of
the headers, removing the the standards-related #ifdef statements from
around the definitions and adding a "-I dir" flag to your command
line, where "dir" is the directory containing the modified headers.
Several iterations may be required to catch all the dependencies.
- DDH
prev parent reply other threads:[~2004-01-20 7:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-20 3:46 cxx -std strict_ansi and C header files Bryan Walsh
2004-01-20 7:40 ` David Donald Hooton [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox