🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: borland.public.cppbuilder.migration
3 messages
3 total messages Started by chandana Tue, 08 Aug 2006 15:06
E2268:Call to undefined function min
#179
Author: chandana
Date: Tue, 08 Aug 2006 15:06
16 lines
1147 bytes
Hi All,
I have an application written in C++ builder .

I am trying to migrate this to BDS 2006.However 
on compile i keep on getting the foolwing error.

E2268:Call to undefined function min.

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?

Thanks in advance,
Chandana
Re: E2268:Call to undefined function min
#180
Author: Johannes Weinert
Date: Tue, 08 Aug 2006 15:36
23 lines
1362 bytes
Hi,

chandana wrote:
> Hi All,
> I have an application written in C++ builder .
> 
> I am trying to migrate this to BDS 2006.However 
> on compile i keep on getting the foolwing error.
> 
> E2268:Call to undefined function min.


you can try

#include <algorithm>
using namespace std;

BTW, if you get in trouble with something like 'back_inserter' not 
known: #include <iterator>.

HTH

Hans
Re: E2268:Call to undefined function min
#185
Author: Joe Pasquariello
Date: Fri, 15 Sep 2006 19:54
25 lines
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?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads