Article View: borland.public.cppbuilder.migration
Article #185Re: E2268:Call to undefined function min
From: Joe Pasquariello
Date: Fri, 15 Sep 2006 19:54
Date: Fri, 15 Sep 2006 19:54
25 lines
1869 bytes
1869 bytes
I found I had to make this change, too. There used to be a macro version in <stdlib.h>, but the compiler is acting like it's not there. Are all of the ANSI C/C++ libraries in BDS the new Dinkumware libraries? Joe "David Dean" <ozchzhq02@sneakemail.com> wrote in message news:ozchzhq02-CE67C3.11270308082006@frylock.local... > In article <44d8a85e$1@newsgroups.borland.com>, > "chandana" <Chandana.pattanayak@ge.com> wrote: > > > Similarly i do get the same kinda error for Max as > > well.Stdlib.h is included in my file. > > > > Any idea on what might go wrong? > > It looks like the documentation might be wrong, rather than use the > macro version of max/min from stdlib.h, it seems you have to use the > template version, which can be found in <algorithm>. (Or you could use > the VCL version in <math.hpp>, but that is Max/Min instead of max/min.) > > -- > -David > > Quis custodiet custodes ipsos?
Technical Details
Message-ID:
<450b04fc$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<44d8a85e$1@newsgroups.borland.com> <ozchzhq02-CE67C3.11270308082006@frylock.local>Show Full Headers
Complete Article Headers
X-Google-Thread: 110f51,58ec51bc88b2bcbc X-Google-Attributes: gid110f51,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Joe Pasquariello" <joep@fenway.com> Newsgroups: borland.public.cppbuilder.migration References: <44d8a85e$1@newsgroups.borland.com> <ozchzhq02-CE67C3.11270308082006@frylock.local> Subject: Re: E2268:Call to undefined function min Date: Fri, 15 Sep 2006 12:54:27 -0700 Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1807 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1807 NNTP-Posting-Host: 64.142.65.234 Message-ID: <450b04fc$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1158350076 64.142.65.234 (15 Sep 2006 12:54:36 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail