Hi,
I'm using the VC++ 6.0 compiler and am getting numerous error messages when trying to pass a string as a parameter to a constructor. I've tried a small test and I still get the same error:
#include<string>
class MyClass
{
public:
MyClass(const string &fileName); // error here
}...
I never downloaded any service pack. I just have VC++ 6.0. I usually use g++, and I'm fairly new the VC++ compiler.
I tried the code fragment above witht the added define statement, but I still get the same error message (C2065).
Thanks. I tried the code fragment you advised, and it still generates the same error message when I try to build the project. I then tried using the adding the scoping operator std::, and it gives the additional error message "error 2039 : 'max' is not a member of the std".
I'm also using VC++...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.