Re: Strange behaviour with g++ 3.4.4-1

2005-09-28 Thread Charles Wilson
Larry Hall wrote: At 08:45 AM 9/28/2005, you wrote: The correct fix, in my opinion, would be to update windef.h to not define min and max if __cplusplus is defined, since C++ is much less forgiving of min and max being macros in the first place (in other words, min and max as macros only works

Re: Strange behaviour with g++ 3.4.4-1

2005-09-28 Thread Larry Hall
At 08:45 AM 9/28/2005, you wrote: >-BEGIN PGP SIGNED MESSAGE- >Hash: SHA1 > >According to Andy Moreton on 9/27/2005 7:58 AM: #include #include +#undef max +#undef min #include >>> >>> >> >> The problem is that "windows.h" includes "windef.h" which defines the

Re: Strange behaviour with g++ 3.4.4-1

2005-09-28 Thread Eric Blake
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 According to Andy Moreton on 9/27/2005 7:58 AM: >>> >>> #include >>> #include >>>+#undef max >>>+#undef min >>> #include >> >> > > The problem is that "windows.h" includes "windef.h" which defines the > standard macros min() and max() without chec

RE: Strange behaviour with g++ 3.4.4-1

2005-09-27 Thread Andy Moreton
On Mon, 26 Sep 2005 21:41:29 GMT, Angelo Graziosi wrote: > > > Dave Korn wrote: > > >> You can fix it like this: >> >> [EMAIL PROTECTED] /test/cplus> g++ test.fixed.cpp -o test >> [EMAIL PROTECTED] /test/cplus> diff -pu test.cpp test.fixed.cpp >> --- test.cpp2005-09-26 10:52:37.405042000 +

Re: Strange behaviour with g++ 3.4.4-1

2005-09-26 Thread Charles Wilson
Dave Korn wrote: You can fix it like this: #include #include +#undef max +#undef min #include or like this: #include +#define NOMINMAX #include #include -- Chuck -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/prob

RE: Strange behaviour with g++ 3.4.4-1

2005-09-26 Thread Angelo Graziosi
Dave Korn wrote: > You can fix it like this: > > [EMAIL PROTECTED] /test/cplus> g++ test.fixed.cpp -o test > [EMAIL PROTECTED] /test/cplus> diff -pu test.cpp test.fixed.cpp > --- test.cpp2005-09-26 10:52:37.405042000 +0100 > +++ test.fixed.cpp 2005-09-26 10:52:26.555119000 +0100 > @@ -

RE: Strange behaviour with g++ 3.4.4-1

2005-09-26 Thread Dave Korn
Original Message >From: Angelo Graziosi >Sent: 23 September 2005 22:01 > Rebuilding, with GCC 3.4.4-1, a few my Windows applications > (those that use -mwindows), I have found a compiler error that > was absent in the build with GCC 3.3.3-3. > > I have created the simplest test case that

Strange behaviour with g++ 3.4.4-1

2005-09-23 Thread Angelo Graziosi
Rebuilding, with GCC 3.4.4-1, a few my Windows applications (those that use -mwindows), I have found a compiler error that was absent in the build with GCC 3.3.3-3. I have created the simplest test case that reproduces the 'phenomenon' // // test.cpp //