From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,29561f05da9c1f2c,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2004-01-19 19:48:59 PST Path: archiver1.google.com!news1.google.com!news2.google.com!news.maxwell.syr.edu!news.litech.org!cox.net!news-xfer.cox.net!p01!okepread03.POSTED!not-for-mail From: Bryan Walsh User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030922 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.unix.tru64 Subject: cxx -std strict_ansi and C header files Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Mon, 19 Jan 2004 20:46:40 -0700 NNTP-Posting-Host: 68.0.158.228 X-Complaints-To: abuse@cox.net X-Trace: okepread03 1074570536 68.0.158.228 (Mon, 19 Jan 2004 22:48:56 EST) NNTP-Posting-Date: Mon, 19 Jan 2004 22:48:56 EST Organization: Cox Communications Xref: archiver1.google.com comp.unix.tru64:11111 Hi All, 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. For example: -including semaphore.h, yields undefined macro definitons -including cstdlib, or stlib.h no longer prototypes the srandom and random functions. -including setjmp.h, no longer prototypes the sigsetjmp and siglongjmp functions. Has anybody else experienced these difficulties? Does anybody have any workarounds? Any help would be appreciated! Thank You, Bryan Walsh