Full ack. There are tons of articles about that. Just found e.g.
http://www.suodenjoki.dk/us/archive/2010/min-max.htm
http://stackoverflow.com/questions/5004858/stdmin-gives-error
But I wonder, how to solve that. The problem happens, when we compile
addrinfo.cpp. The first header it includes is cxxtools/net/addrinfo.h. There
the first header is cxxtools/api.h. There is this:
...
#if defined(WIN32) || defined(_WIN32)
// suppress min/max macros from win32 headers
#ifndef NOMINMAX
#define NOMINMAX
#endif
...
So how comes, that NOMINMAX is not defined. Is it possible, neither WIN32 nor
_WIN32 is defined in mingw or cygwin?
Tommi
Am Donnerstag, 20. Oktober 2011, 19:42:12 schrieb dispy:
> Cygwin enables the programs compiled in it to partially make use of
> native features or even dll's of Windows.
> I encountered problems, as the compiler seems to include windows-headers
> and thus macros like MIN and MAX are defined.
> I solved this by defining NOMINMAX in one header (I forgot which one,
> just put it in each of the unleashing ones) of the bundled compiler.
>
> Seems - to me- that you've got this pitfall, too.
>
> Regards
>
...
------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn
about Cisco certifications, training, and career opportunities.
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general