From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,29561f05da9c1f2c X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2004-01-19 23:40:43 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.mathworks.com!nntp.TheWorld.com!not-for-mail From: David Donald Hooton Newsgroups: comp.unix.tru64 Subject: Re: cxx -std strict_ansi and C header files Date: Tue, 20 Jan 2004 07:40:42 +0000 (UTC) Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: NNTP-Posting-Host: pip1-5.std.com X-Trace: pcls4.std.com 1074584442 22776 192.74.137.185 (20 Jan 2004 07:40:42 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Tue, 20 Jan 2004 07:40:42 +0000 (UTC) User-Agent: tin/1.4.5-20010409 ("One More Nightmare") (UNIX) (IRIX64/6.5 (IP27)) Xref: archiver1.google.com comp.unix.tru64:11112 Bryan Walsh 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