L
Lawrence2001
Guest
I created a C++ Win32 app with VS2010 version 10.0.30319.1 RTMRel. It has a std::string. There are error messages on std.
Here is the code.
// StudyCPPHSTimer.cpp : Defines the entry point for the console application.
//
#include
"stdafx.h"
#include
<Windows.h>
int
_tmain(int argc, _TCHAR* argv[])
{
std::string s1;
return 0;
}
The error messages are
C2039 string is not a member of 'std'
C0265 string: undeclared identifier
C2146 syntax error: missing ';' before identifier 's1'
C2065 's1': undeclared identifier
IntelliSense: name followed by '::' must be a class or a namespace name
IntelliSense: expected a ';'
BTW I converted a VS2008 C++ project which has std::string code and it compiled without errors.
Continue reading...
Here is the code.
// StudyCPPHSTimer.cpp : Defines the entry point for the console application.
//
#include
"stdafx.h"
#include
<Windows.h>
int
_tmain(int argc, _TCHAR* argv[])
{
std::string s1;
return 0;
}
The error messages are
C2039 string is not a member of 'std'
C0265 string: undeclared identifier
C2146 syntax error: missing ';' before identifier 's1'
C2065 's1': undeclared identifier
IntelliSense: name followed by '::' must be a class or a namespace name
IntelliSense: expected a ';'
BTW I converted a VS2008 C++ project which has std::string code and it compiled without errors.
Continue reading...