gcc3.4.6: std::min and std::max
Ian Lance Taylor
iant@google.com
Thu Nov 16 15:20:00 GMT 2006
"BG / Galaxy" <bernard.garros@galaxysemi.com> writes:
> I recently upgraded my system from Solaris2.5.1/gcc3.3.2 to
> Solaris7/gcc3.4.6.
> When recompiling my project, I often get errors in gcc files complaining
> about lines using std::min or std::max,
> ie:
...
> /usr/local/lib/gcc/sparc-sun-solaris2.7/3.4.6/../../../../include/c++/3.4.6/
> bits/stl_bvector.h:522: error: expected unqualified-id before '(' token
Wrong mailing list. Use gcc-help@gcc.gnu.org for these sorts of
questions.
The most likely explanation is that some header file you include
before is doing
#define max ...
and thus breaking the use of std::max.
Please follow up to gcc-help. Thanks.
Ian
More information about the Gcc
mailing list