http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46601
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID --- Comment #1 from Richard Guenther <rguenth at gcc dot gnu.org> 2010-11-22 12:46:33 UTC --- /vobs/gnu/gcc/SunOS-5.8/lib/gcc/sparc-sun-solaris2.8/4.2.0/../../../../include/c++/4.2.0/bits/stl_algobase.h:226:56: error: macro "min" passed 3 arguments, but takes just 2 /vobs/gnu/gcc/SunOS-5.8/lib/gcc/sparc-sun-solaris2.8/4.2.0/../../../../include/c++/4.2.0/bits/stl_algobase.h:246:56: error: macro "max" passed 3 arguments, but takes just 2 In file included from something defines a macro named min and max, that conflicts with std::min and std::max. Do not include C headers. Btw, 4.2.0 is no longer supported, please update to at least 4.3.5 which may contain a workaround.