Newsgroups: comp.os.msdos.djgpp From: "William A. Barath" Subject: Re: Optmization and Exceptions In-Reply-To: Content-Type: TEXT/PLAIN; charset=US-ASCII Message-ID: Sender: news AT freenet DOT victoria DOT bc DOT ca (News Manager) Organization: Victoria Telecommunity Network References: Mime-Version: 1.0 Date: Wed, 31 Dec 1997 12:03:58 GMT Lines: 17 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Thu, 25 Dec 1997, DeHackEd wrote: |3) Exceptions often cause the compiler to have an internal compiler error |message. Take a look at a simple program like this (I know I am using C, not |C++, screen routines, but it makes the output much nicer) |// This program does not link if -O3 compiled! Can you find the error? |// And you need to link in -lstdcx If you read the FAQ or the INFO on C++, you would know that you can't enable inlining (reliably) when compiling C++ code. -O3 turns on inlining, hence the error. Wil Barath, aka WseM : "I feel as though I see my pen to write" Author of VPM, EDITPLN, and other VGA Planets support programs Visit my homepage! -------------> http://victoria.tc.ca/~wi534 --------- A. Sinan Unur Department of Policy Analysis and Management, College of Human Ecology, Cornell University, Ithaca, NY 14853, USA mailto:sinan DOT unur AT cornell DOT edu http://www.people.cornell.edu/pages/asu1/