Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 26 Sep 2005 23:41:29 +0200 (MET DST) From: Angelo Graziosi To: cygwin AT cygwin DOT com Subject: RE: Strange behaviour with g++ 3.4.4-1 Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Dave Korn wrote: > You can fix it like this: > > dk AT mace /test/cplus> g++ test.fixed.cpp -o test > dk AT mace /test/cplus> diff -pu test.cpp test.fixed.cpp > --- test.cpp 2005-09-26 10:52:37.405042000 +0100 > +++ test.fixed.cpp 2005-09-26 10:52:26.555119000 +0100 > @@ -1,6 +1,8 @@ > > #include > #include > +#undef max > +#undef min > #include Thanks, Dave, for the patch. I would know if there is some bug somewhere: it sounds strange that moving the header 'windows.h' at the beginning or at the end of includes sequence, the build works fine. Best regards, Angelo. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/