Error C2061: syntax error
I'm trying to use string-class with my program, and I've included string.h (#include <string.h>), but I still can't use string-class.
I get this error while compiling:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vccore98/html/c2061.asp
The other possible problem is that the string class lives in the std namespace, so you should either prefix the string identifier with std:: as in std::string or use a using statement or directive to bring string in from the std namespace. ex: using namespace std; or using std::string;
If that doesn't work for you, you'll probably need to post the code you are trying to compile.
If that doesn't work for you, you'll probably need to post the code you are trying to compile.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement