Hi Jamie,
   SDK 4.0 has removed the min() and max() macros because they 
conflicted with facilities in C++. If you want to use the min and max 
you are provided with 2 options.
1: you have to define the functions yourself
   #define min(a, b) (((a) < (b)) ? (a) : (b))
   #define max(a, b) (((a) > (b)) ? (a) : (b))
2: SDK 4.0 has the min() and max() macros defined under the header 
file PalmUtils.h
   you have to include the file in your program
   #include<PalmUtils.h>


thanks
   Manikumar K
--------------------------------------------------------------------
Developers' Nation
You've got the questions; we've got the answers.
Visit Us At :http://www.devnation.net for Palm Developer Support
--------------------------------------------------------------------


--- In [EMAIL PROTECTED], "Jamie Macleod" <[EMAIL PROTECTED]> wrote:
> I upgraded CodeWarrior 7.0 to the 4.0 SDK and now I am getting one 
compile
> error were I use the min() function.  The rest of my project 
compiles fine.
> The error is "Error:  function has no prototype".  Any suggestions?
> 
> Jamie
> 
> 
> 
> -- 
> For information on using the Palm Developer Forums, or to 
unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to