Hi,
I have a program which uses the max() and min() functions from the STL. The program compiles and runs under Unix using the g++ compiler; however, when I try to build it using Visual C++, I get a C2065 error message, which says " 'max' : undeclared identifier".
I have used the #include<algorithm> at the top, and am using namespace std, so I can't see what could be wrong -especially since it's standard C++, and the code will compile fine under a different compiler. I'd really appreciate any help.
I have a program which uses the max() and min() functions from the STL. The program compiles and runs under Unix using the g++ compiler; however, when I try to build it using Visual C++, I get a C2065 error message, which says " 'max' : undeclared identifier".
I have used the #include<algorithm> at the top, and am using namespace std, so I can't see what could be wrong -especially since it's standard C++, and the code will compile fine under a different compiler. I'd really appreciate any help.