I installed visual studio 2015
I generated an empy win32 c++ project
It is exactly as this:
#include <string>
int main()
{
return 0;
}
In compilation it generates c2275 illegal use of type
As expression
So what is the problem?
The complete error message generated would be more helpful than the portion of one you've supplied.
A wild guess but, if you named your file 'main.c' it may cause issues with the header you included since string
is a part of C++.
Try using an empty project rather than an Win32 project. I think Win32 is tied to the Visual C++ side of things.