Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: :min, std::max



As an example of the exact error I am getting;

 

error:expected unqualified-id before ‘(‘ token”

 

then the error is pointing to the line

const streamsize __limit = std::min(__chunk, __bufavail):” in the file fstream.tcc

 

there are 12 such errors, all relating to std::min and std::max.

 

Carl

 

-----Original Message-----
 Sent:
Monday, October 24, 2005 5:40 PM
To: email@hidden
Subject: std::min, std::max

 

I am trying to get my application that was compiling find under Xcode 1.5 to compile in Xcode 2, but I keep getting errors, when compiling, relating to std::min( ) and std::max(). The files are containing the std::max/std::min calls are in the /usr/include/gcc/Darwin/4.0/ sub directories, such as /usr/include/gcc/Darwin/4.0/bits/fstream.tcc files and etc.

 

I would have thought that a transfer direct compile from my 1.5 project would have been easy, but I was wrong.

 

Any thoughts as to what I may need to include or bring into my Xcode 2.0 project to get a clean compile?

 

Thanks for any suggestions

 

Carl



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.