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
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
-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
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 +
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
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
> @@ -
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
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
//
8 matches
Mail list logo