This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Where should g++ find a 'max' macro or function ?
- From: Michael Svetlik <m dot svetlik at ssi-schaefer-peem dot com>
- To: Eljay Love-Jensen <eljay at adobe dot com>,gcc-help at gcc dot gnu dot org
- Date: Mon, 10 Nov 2003 19:30:21 +0100
- Subject: Re: Where should g++ find a 'max' macro or function ?
- Organization: SSI-Schaefer-PEEM
- References: <5.2.1.1.0.20031110064449.0151e6a0@iplan-mn.corp.adobe.com>
On Monday 10 November 2003 13:54, Eljay Love-Jensen wrote:
>
> In C++ (and in C) it's strongly recommended that you include the proper
> header file that declares the symbols utilized.
>
> Try this in your little program:
> /* -------------------------------------------------------- */
> #include <algorithm>
> using std::max;
Thanks, helped.
I already knew about strict prototyping, but didn't know _WHERE_ to find the
prototype. To avoid messing up the gcc-help list next time, could you - or
anyone of the guru's - point me a document, specifying where to find such
standard utilities, means which stl header to include ? Would be great ...
Michael