Visual Studio include files calling error - C++ - c++

I'm building one sample from CEGUI, the SDK seems to be fine setle and the futher errors regarding the CEGUI on the log seems to come because of the errors with the includes from MVS. I can't affirm this since I'm not a C++ expert yet...I'm more experienced with Java..
Anyway, I saw a lot of posts talking about those compile errors, even since 2005, but some of them are just threw away, descontinued or the others that has an answer I couldn't fully understand (I supose until now they dont fit on my case...).
I can list here some posts I tryed to find an answer:
http://www.ogre3d.org/forums/viewtopic.php?p=205194
error C2039: 'find' : is not a member of 'std'
error C2039: 'memchr' : is not a member of '`global namespace''
Syntax Errors in standard Microsoft files "iosfwd" & "atlconv.h" while compiling a VS2008 soln?
I don't really get whats going wrong on my programm, so I'm seeking for help here cos I've been stuck here for 2 days reading things and trying to solve my own, I don't know what else to do to go futher. Could someone try to explain me what might be wrong with the compilation?
1>------ Build started: Project: Almost giving up, Configuration: Debug Win32 ------
1> main.cpp
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd(517): error C2039: 'memcmp' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd(517): error C3861: 'memcmp': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd(523): error C2039: 'strlen' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd(523): error C3861: 'strlen': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd(546): error C2039: 'memchr' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd(546): error C3861: 'memchr': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd(559): error C2039: 'memset' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\iosfwd(559): error C3861: 'memset': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2651): error C2039: 'memset' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2651): error C3861: 'memset': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2656): error C2039: 'memset' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2656): error C3861: 'memset': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2661): error C2039: 'memset' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2661): error C3861: 'memset': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2685): error C2039: 'memset' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2685): error C3861: 'memset': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2692): error C2039: 'memset' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2692): error C3861: 'memset': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2699): error C2039: 'memset' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2699): error C3861: 'memset': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2964): error C2039: 'memcmp' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2964): error C3861: 'memcmp': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2970): error C2039: 'memcmp' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2970): error C3861: 'memcmp': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2976): error C2039: 'memcmp' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(2976): error C3861: 'memcmp': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(3125): error C2039: 'memcmp' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(3125): error C3861: 'memcmp': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(3193): error C2039: 'memchr' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(3193): error C3861: 'memchr': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(3200): error C2039: 'memchr' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(3200): error C3861: 'memchr': identifier not found
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(3208): error C2039: 'memchr' : is not a member of '`global namespace''
1>c:\program files (x86)\microsoft visual studio 11.0\vc\include\xutility(3208): error C3861: 'memchr': identifier not found
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(44): error C2146: syntax error : missing ';' before identifier 'utf8'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(44): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(46): error C2146: syntax error : missing ';' before identifier 'utf32'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(46): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(51): error C2146: syntax error : missing ';' before identifier 'encoded_char'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(51): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(51): error C2378: 'CEGUI::utf8' : redefinition; symbol cannot be overloaded with a typedef
1> c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(44) : see declaration of 'CEGUI::utf8'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(64): error C2504: 'AllocatedObject' : base class undefined
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(64): error C2143: syntax error : missing ',' before '<'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(70): error C2146: syntax error : missing ';' before identifier 'value_type'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(70): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(87): error C2143: syntax error : missing ';' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(87): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(471): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(471): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(503): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(503): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(503): error C2535: 'CEGUI::String::String(const int)' : member function already defined or declared
1> c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(471) : see declaration of 'CEGUI::String::String'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(862): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(862): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(897): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(897): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(935): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(935): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(936): error C2535: 'int CEGUI::String::compare(CEGUI::String::size_type,CEGUI::String::size_type,const int) const' : member function already defined or declared
1> c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(897) : see declaration of 'CEGUI::String::compare'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1082): error C2143: syntax error : missing ';' before '['
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1082): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1083): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1162): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1162): error C2143: syntax error : missing ';' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1163): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1165): warning C4183: 'data': missing return type; assumed to be a member function returning 'int'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1207): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1207): error C2061: syntax error : identifier 'utf8'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1381): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1381): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1381): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1404): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1404): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1404): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1430): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1430): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1430): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1431): error C2535: 'CEGUI::String &CEGUI::String::assign(const int)' : member function already defined or declared
1> c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1404) : see declaration of 'CEGUI::String::assign'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1454): error C2535: 'CEGUI::String &CEGUI::String::operator =(const int)' : member function already defined or declared
1> c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1381) : see declaration of 'CEGUI::String::operator ='
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1728): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1728): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1728): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1751): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1751): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1751): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1778): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1778): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1778): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1779): error C2535: 'CEGUI::String &CEGUI::String::append(const int)' : member function already defined or declared
1> c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1751) : see declaration of 'CEGUI::String::append'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1807): error C2535: 'CEGUI::String &CEGUI::String::operator +=(const int)' : member function already defined or declared
1> c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(1728) : see declaration of 'CEGUI::String::operator +='
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2115): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2115): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2145): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2145): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2146): error C2535: 'CEGUI::String &CEGUI::String::insert(CEGUI::String::size_type,const int)' : member function already defined or declared
1> c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2115) : see declaration of 'CEGUI::String::insert'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2747): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2747): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2779): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2779): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2812): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2812): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2813): error C2535: 'CEGUI::String &CEGUI::String::replace(CEGUI::String::size_type,CEGUI::String::size_type,const int)' : member function already defined or declared
1> c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2747) : see declaration of 'CEGUI::String::replace'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2867): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2867): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2868): error C2535: 'CEGUI::String &CEGUI::String::replace(CEGUI::String::iterator,CEGUI::String::iterator,const int)' : member function already defined or declared
1> c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(2779) : see declaration of 'CEGUI::String::replace'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3388): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3388): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3388): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3415): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3415): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3415): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3445): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3445): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3445): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3446): error C2535: 'CEGUI::String::size_type CEGUI::String::find(const int) const' : member function already defined or declared
1> c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3388) : see declaration of 'CEGUI::String::find'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3496): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3496): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3496): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3497): error C2535: 'CEGUI::String::size_type CEGUI::String::rfind(const int) const' : member function already defined or declared
1> c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3415) : see declaration of 'CEGUI::String::rfind'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3820): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3820): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3820): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3847): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3847): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3847): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3877): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3877): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3877): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3878): error C2535: 'CEGUI::String::size_type CEGUI::String::find_first_of(const int) const' : member function already defined or declared
1> c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3820) : see declaration of 'CEGUI::String::find_first_of'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3925): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3925): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3925): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3926): error C2535: 'CEGUI::String::size_type CEGUI::String::find_first_not_of(const int) const' : member function already defined or declared
1> c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(3847) : see declaration of 'CEGUI::String::find_first_not_of'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(4302): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(4302): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(4302): error C2143: syntax error : missing ',' before '*'
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(4329): error C2327: 'CEGUI::String::utf8' : is not a type name, static, or enumerator
1>c:\program files (x86)\cegui\cegui-0.8.2\cegui\include\cegui\string.h(4329): fatal error C1003: error count exceeds 100; stopping compilation
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skippe
d ==========
Code:
#include <RendererModules\Ogre\Renderer.h>
int main(){
// Bootstrap CEGUI::System with an OgreRenderer object that uses the
// default Ogre rendering window as the default output surface, an Ogre based
// ResourceProvider, and an Ogre based ImageCodec.
CEGUI::OgreRenderer& myRenderer =
CEGUI::OgreRenderer::bootstrapSystem();
}
The code comes from http://www.cegui.org.uk/docs/current/rendering_tutorial.html ; Even that doesnt say anything about include xutility or iosfwd I already tryed to do but the error is the same, I also tryed to open the files from VS but since I'm not an expert I couldnt fully understand to check for any errors, which I can't believe thats wrong since its a default file..

I know this is an old post but I figured I would answer it.
If you include cegui-0.8.7\cegui\include\CEGUI in your MSVC include directories then it will suck up the String.h file in there and then will use THAT definition EVERYWHERE. Thus you start seeing things like xutility and iosfwd show up in the tainting.
Instead you must include ...\cegui-0.8.7\cegui\include so that it is scoped with CEGUI and does not confuse your entire build system.
Hope this helps someone!

Related

C++: PlaySound() gives 100+ compilation errors [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 months ago.
Improve this question
I am trying to play a sound in C++. When I use the PlaySound() function, Visual Studio gives 100+ compilation errors (I know this because the compiler stops at 100 errors). Below is my code:
#include <mmsystem.h>
#include <windows.h>
int main()
{
bool played = PlaySound(TEXT("sound.wav"), NULL, SND_SYNC);
return 0;
}
Visual Studio's linter also gives the error:
identifier PlaySoundW is undefined
This is the compilation output:
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(94,30): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(94,21): error C2146: syntax error: missing ';' before identifier 'MMVERSION'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(98,32): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(98,32): error C2059: syntax error: 'return'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(102,20): error C2143: syntax error: missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(102,27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(112,21): error C3646: 'ms': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(112,23): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(113,21): error C3646: 'sample': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(113,27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(114,21): error C3646: 'cb': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(114,23): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(115,21): error C3646: 'ticks': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(115,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(120,21): error C3646: 'hour': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(120,25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(121,21): error C3646: 'min': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(121,24): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(122,21): error C3646: 'sec': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(122,24): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(123,21): error C3646: 'frame': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(123,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(124,21): error C3646: 'fps': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(124,24): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(125,21): error C3646: 'dummy': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(125,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(127,21): error C3646: 'pad': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(127,24): error C2143: syntax error: missing ',' before '['
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(127,27): error C2238: unexpected token(s) preceding ';'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(134,19): error C3646: 'songptrpos': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(134,29): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(137,26): error C2143: syntax error: missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(137,35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(137,41): error C2143: syntax error: missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(137,41): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(137,41): error C2377: 'FAR': redefinition; typedef cannot be overloaded with any other symbol
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(102): message : see declaration of 'FAR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(137,50): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(275,21): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(275,16): error C2065: 'HDRVR': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(297,24): error C2146: syntax error: missing ')' before identifier 'DRVCALLBACK'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(297,24): error C2146: syntax error: missing ';' before identifier 'DRVCALLBACK'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(297,35): error C2059: syntax error: ')'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(297,43): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(297,37): error C2065: 'HDRVR': undeclared identifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(297,43): error C2146: syntax error: missing ')' before identifier 'hdrvr'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(299,25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(299,25): error C2378: 'DRVCALLBACK': redefinition; symbol cannot be overloaded with a typedef
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(297): message : see declaration of 'DRVCALLBACK'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(299,21): error C2146: syntax error: missing ';' before identifier 'FAR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(299,25): error C2143: syntax error: missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(299,21): error C2086: 'int FAR': redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(137): message : see declaration of 'FAR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(299,39): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(301,25): error C2143: syntax error: missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(301,25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(301,25): error C2378: 'DRVCALLBACK': redefinition; symbol cannot be overloaded with a typedef
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(297): message : see declaration of 'DRVCALLBACK'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(301,38): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(37,25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(37,17): error C2146: syntax error: missing ';' before identifier 'MCIERROR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(45,24): error C2143: syntax error: missing ')' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(45,24): error C2143: syntax error: missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(45,15): error C2371: 'CALLBACK': redefinition; different basic types
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(297): message : see declaration of 'CALLBACK'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(45,34): error C2059: syntax error: ')'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(45,73): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(52,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(51,1): error C2146: syntax error: missing ';' before identifier 'MCIERROR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(62,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(60,1): error C2086: 'int DECLSPEC_IMPORT': redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(50): message : see declaration of 'DECLSPEC_IMPORT'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(61,1): error C2146: syntax error: missing ';' before identifier 'MCIERROR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(77,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(75,1): error C2086: 'int DECLSPEC_IMPORT': redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(50): message : see declaration of 'DECLSPEC_IMPORT'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(76,1): error C2146: syntax error: missing ';' before identifier 'MCIERROR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(87,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(85,1): error C2086: 'int DECLSPEC_IMPORT': redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(50): message : see declaration of 'DECLSPEC_IMPORT'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(86,1): error C2146: syntax error: missing ';' before identifier 'MCIERROR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(102,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(100,1): error C2086: 'int DECLSPEC_IMPORT': redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(50): message : see declaration of 'DECLSPEC_IMPORT'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(101,1): error C2146: syntax error: missing ';' before identifier 'MCIDEVICEID'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(109,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(107,1): error C2086: 'int DECLSPEC_IMPORT': redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(50): message : see declaration of 'DECLSPEC_IMPORT'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(108,1): error C2146: syntax error: missing ';' before identifier 'MCIDEVICEID'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(121,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(119,1): error C2086: 'int DECLSPEC_IMPORT': redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(50): message : see declaration of 'DECLSPEC_IMPORT'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(120,1): error C2146: syntax error: missing ';' before identifier 'MCIDEVICEID'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(129,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(127,1): error C2086: 'int DECLSPEC_IMPORT': redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(50): message : see declaration of 'DECLSPEC_IMPORT'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(128,1): error C2146: syntax error: missing ';' before identifier 'MCIDEVICEID'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(142,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(140,1): error C2086: 'int DECLSPEC_IMPORT': redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(50): message : see declaration of 'DECLSPEC_IMPORT'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(141,1): error C2146: syntax error: missing ';' before identifier 'BOOL'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(151,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(149,1): error C2086: 'int DECLSPEC_IMPORT': redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(50): message : see declaration of 'DECLSPEC_IMPORT'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(150,1): error C2146: syntax error: missing ';' before identifier 'BOOL'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(173,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(171,1): error C2086: 'int DECLSPEC_IMPORT': redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(50): message : see declaration of 'DECLSPEC_IMPORT'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(172,1): error C2146: syntax error: missing ';' before identifier 'BOOL'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(202,1): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(200,1): error C2086: 'int DECLSPEC_IMPORT': redefinition
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(50): message : see declaration of 'DECLSPEC_IMPORT'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(201,1): error C2146: syntax error: missing ';' before identifier 'BOOL'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(499,17): error C3646: 'dwCallback': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(499,27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(500,47): error C2143: syntax error: missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(500,43): error C2371: 'FAR': redefinition; different basic types
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(137): message : see declaration of 'FAR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(500,67): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(507,17): error C3646: 'dwCallback': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(507,27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(509,16): error C3646: 'lpstrDeviceType': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(509,31): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(510,16): error C3646: 'lpstrElementName': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(510,32): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(511,16): error C3646: 'lpstrAlias': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(511,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(514,17): error C3646: 'dwCallback': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(514,27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(516,16): error C3646: 'lpstrDeviceType': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(516,31): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(517,16): error C3646: 'lpstrElementName': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(517,32): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(518,16): error C3646: 'lpstrAlias': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(518,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(544,17): error C3646: 'dwCallback': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(544,27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(547,41): error C2143: syntax error: missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(547,37): error C2371: 'FAR': redefinition; different basic types
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(137): message : see declaration of 'FAR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(547,58): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(552,17): error C3646: 'dwCallback': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(552,27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(554,41): error C2143: syntax error: missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(554,37): error C2371: 'FAR': redefinition; different basic types
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(137): message : see declaration of 'FAR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(554,58): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(559,17): error C3646: 'dwCallback': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(559,27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(560,17): error C3646: 'dwReturn': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(560,25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(563,45): error C2143: syntax error: missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(563,41): error C2371: 'FAR': redefinition; different basic types
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(137): message : see declaration of 'FAR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(563,65): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(570,15): error C3646: 'dwCallback': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(570,25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(571,15): error C3646: 'lpstrReturn': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(571,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(575,15): error C3646: 'dwCallback': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(575,25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(576,15): error C3646: 'lpstrReturn': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(576,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(598,17): error C3646: 'dwCallback': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(598,27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(601,53): error C2143: syntax error: missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(601,49): error C2371: 'FAR': redefinition; different basic types
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(137): message : see declaration of 'FAR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(601,77): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(608,17): error C3646: 'dwCallback': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(608,27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(609,17): error C3646: 'lpstrReturn': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(609,28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(615,17): error C3646: 'dwCallback': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(615,27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(616,17): error C3646: 'lpstrReturn': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(616,28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(644,17): error C3646: 'dwCallback': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(644,27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(647,39): error C2143: syntax error: missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(647,35): error C2371: 'FAR': redefinition; different basic types
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(137): message : see declaration of 'FAR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(647,55): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(652,17): error C3646: 'dwCallback': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(652,27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(655,17): error C3646: 'hwndBreak': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(655,26): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(662,43): error C2143: syntax error: missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(662,39): error C2371: 'FAR': redefinition; different basic types
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mmsyscom.h(137): message : see declaration of 'FAR'
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(662,62): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(669,18): error C3646: 'dwCallback': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(669,28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(670,18): error C3646: 'lpfilename': unknown override specifier
1>C:\Program Files (x86)\Windows Kits\10\Include\10.0.19041.0\um\mciapi.h(670,28): fatal error C1003: error count exceeds 100; stopping compilation
How do I prevent these compilation errors?
Include <windows.h> first, then <mmsystem.h>

Get massive compile error whenever windows.h is included, my environment is visual studio 2013 in win 7

I have a CPP file Log.cpp which has one line code:
#include "windows.h"
When I compile it, massive syntax errors display:
1>------ Build started: Project: topx, Configuration: Debug Win32 ------
1> Log.cpp
1>c:\program files (x86)\windows kits\8.1\include\um\winbase.h(936): error C2065: 'hMem' : undeclared identifier
1>c:\program files (x86)\windows kits\8.1\include\um\winbase.h(936): error C2065: 'dwBytes' : undeclared identifier
1>c:\program files (x86)\windows kits\8.1\include\um\winbase.h(938): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\8.1\include\um\winbase.h(938): error C2491: '_Ret_reallocated_bytes_' : definition of dllimport data not allowed
1>c:\program files (x86)\windows kits\8.1\include\um\winbase.h(938): error C2078: too many initializers
1>c:\program files (x86)\windows kits\8.1\include\um\winbase.h(938): error C2146: syntax error : missing ';' before identifier 'HGLOBAL'
1>c:\program files (x86)\windows kits\8.1\include\um\winbase.h(938): error C2143: syntax error : missing ';' before '__stdcall'
1>c:\program files (x86)\windows kits\8.1\include\um\winbase.h(938): error C2377: 'HGLOBAL' : redefinition; typedef cannot be overloaded with any other symbol
1> c:\program files (x86)\windows kits\8.0\include\shared\minwindef.h(211) : see declaration of 'HGLOBAL'
1>c:\program files (x86)\windows kits\8.1\include\um\winbase.h(940): error C2146: syntax error : missing ')' before identifier 'hMem'
1>c:\program files (x86)\windows kits\8.1\include\um\winbase.h(940): warning C4229: anachronism used : modifiers on data are ignored
1>c:\program files (x86)\windows kits\8.1\include\um\winbase.h(940): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\8.1\include\um\winbase.h(943): error C2059: syntax error : ')'
....
....
But all is OK when I compile it under windows 8, what is the problem?
Change from:
C:\Program Files (x86)\Windows Kits\8.0\Include\shared
to
C:\Program Files (x86)\Windows Kits\8.1\Include\shared
in "Additional include directories" of project resolve this problem, but I do not know why.

Compilation errors of a simple C++ project in VS 2012.RC 4

I had a program I could run before upgrading to VS 2012.3 and VS 2012.rc4 (VS ultimate 2012 version 11.0.60930.00 update 4 RC). But It shows some strange errors in some include files after upgrade. Specially, the problem is about the "windows.h" header file. I cannot even compile a simple program, as below. I have also changed the order of include files, but the errors remain. I hope you can help me.
EDIT:
When I change the platform toolset from v11 to v10, the errors disappear and I can compile them correctly.
#include "stdafx.h"
#include "windows.h"
int _tmain(int argc, _TCHAR* argv[])
{
return 0;
}
Errors:
1>c:\program files (x86)\windows kits\8.0\include\shared\rpcndr.h(48): error C2144: syntax error : 'int' should be preceded by ';'
1>c:\program files (x86)\windows kits\8.0\include\shared\rpcndr.h(48): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(116): error C2146: syntax error : missing ';' before identifier 'OLECHAR'
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(116): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(118): error C2143: syntax error : missing ';' before '*'
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(118): error C2373: 'OLECHAR' : redefinition; different type modifiers
1> c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(114) : see declaration of 'OLECHAR'
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(118): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(423): error C2146: syntax error : missing ';' before identifier 'BYTE_BLOB'
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(423): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(431): error C2143: syntax error : missing ';' before '*'
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(431): error C2371: 'WORD_BLOB' : redefinition; different basic types
1> c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(429) : see declaration of 'WORD_BLOB'
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(431): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(439): error C2143: syntax error : missing ';' before '*'
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(439): error C2371: 'DWORD_BLOB' : redefinition; different basic types
1> c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(437) : see declaration of 'DWORD_BLOB'
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(439): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(448): error C2143: syntax error : missing ';' before '*'
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(448): error C2371: 'FLAGGED_BYTE_BLOB' : redefinition; different basic types
1> c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(446) : see declaration of 'FLAGGED_BYTE_BLOB'
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(448): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(457): error C2143: syntax error : missing ';' before '*'
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(457): error C2371: 'FLAGGED_WORD_BLOB' : redefinition; different basic types
1> c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(455) : see declaration of 'FLAGGED_WORD_BLOB'
1>c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(457): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(405): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(405): error C2371: 'userCLIPFORMAT' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(403) : see declaration of 'userCLIPFORMAT'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(405): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(430): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(430): error C2371: 'userHGLOBAL' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(428) : see declaration of 'userHGLOBAL'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(430): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(517): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(517): error C2371: 'RemotableHandle' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(515) : see declaration of 'RemotableHandle'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(517): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(519): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(519): error C2371: 'RemotableHandle' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(515) : see declaration of 'RemotableHandle'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(519): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(521): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(521): error C2371: 'RemotableHandle' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(515) : see declaration of 'RemotableHandle'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(521): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(523): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(523): error C2371: 'RemotableHandle' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(515) : see declaration of 'RemotableHandle'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(523): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(525): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(525): error C2371: 'RemotableHandle' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(515) : see declaration of 'RemotableHandle'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(525): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(527): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(527): error C2371: 'RemotableHandle' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(515) : see declaration of 'RemotableHandle'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(527): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(529): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(529): error C2371: 'RemotableHandle' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(515) : see declaration of 'RemotableHandle'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(529): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(531): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(531): error C2371: 'RemotableHandle' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(515) : see declaration of 'RemotableHandle'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(531): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(533): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(533): error C2371: 'RemotableHandle' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(515) : see declaration of 'RemotableHandle'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(533): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(611): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(611): error C2371: 'userHBITMAP' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(494) : see declaration of 'userHBITMAP'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(611): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(613): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(613): error C2371: 'userHPALETTE' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(505) : see declaration of 'userHPALETTE'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(613): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(615): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(615): error C2371: 'userHENHMETAFILE' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(471) : see declaration of 'userHENHMETAFILE'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(615): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(617): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(617): error C2371: 'userHMETAFILE' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(441) : see declaration of 'userHMETAFILE'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(617): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(619): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(619): error C2371: 'userHMETAFILEPICT' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(460) : see declaration of 'userHMETAFILEPICT'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(619): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(733): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(733): error C2371: 'FLAGGED_WORD_BLOB' : redefinition; different basic types
1> c:\program files (x86)\windows kits\8.0\include\shared\wtypesbase.h(455) : see declaration of 'FLAGGED_WORD_BLOB'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(733): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(941): error C2146: syntax error : missing ';' before identifier 'pFileExt'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(941): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(942): error C2146: syntax error : missing ';' before identifier 'pMimeType'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(942): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(943): error C2146: syntax error : missing ';' before identifier 'pProgId'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(943): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(944): error C2146: syntax error : missing ';' before identifier 'pFileName'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(944): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(947): error C2146: syntax error : missing ';' before identifier 'pPackageName'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\shared\wtypes.h(947): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(140): error C2061: syntax error : identifier '__RPC__deref_out'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(309): error C2061: syntax error : identifier '__RPC__deref_out'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(431): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(431): error C2371: 'IClassFactory' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(59) : see declaration of 'IClassFactory'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(431): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(524): error C2065: '__RPC__in' : undeclared identifier
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(524): error C2146: syntax error : missing ')' before identifier 'IClassFactory'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(524): warning C4229: anachronism used : modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(526): error C2059: syntax error : ')'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(537): error C2065: '__RPC__in' : undeclared identifier
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(537): error C2146: syntax error : missing ')' before identifier 'IClassFactory'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(537): warning C4229: anachronism used : modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(538): error C2059: syntax error : ')'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(575): error C2065: '__RPC__in' : undeclared identifier
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(575): error C2146: syntax error : missing ')' before identifier 'IClassFactory'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(575): warning C4229: anachronism used : modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(577): error C2059: syntax error : ')'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(585): error C2065: '__RPC__in' : undeclared identifier
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(585): error C2146: syntax error : missing ')' before identifier 'IClassFactory'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(585): warning C4229: anachronism used : modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\unknwnbase.h(586): error C2059: syntax error : ')'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1376): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1376): error C2371: 'IMultiQI' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(94) : see declaration of 'IMultiQI'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1376): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1694): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1694): error C2371: 'IEnumUnknown' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(115) : see declaration of 'IEnumUnknown'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1694): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1805): error C2065: '__RPC__in' : undeclared identifier
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1805): error C2146: syntax error : missing ')' before identifier 'IEnumUnknown'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1805): warning C4229: anachronism used : modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1808): error C2059: syntax error : ')'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1828): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1828): error C2371: 'IEnumString' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(122) : see declaration of 'IEnumString'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1828): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1937): error C2065: '__RPC__in' : undeclared identifier
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1937): error C2146: syntax error : missing ')' before identifier 'IEnumString'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1937): warning C4229: anachronism used : modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(1940): error C2059: syntax error : ')'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2061): error C2065: '__RPC__in' : undeclared identifier
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2061): error C2146: syntax error : missing ')' before identifier 'ISequentialStream'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2061): warning C4229: anachronism used : modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2064): error C2059: syntax error : ')'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2075): error C2065: '__RPC__in' : undeclared identifier
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2075): error C2146: syntax error : missing ')' before identifier 'ISequentialStream'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2075): warning C4229: anachronism used : modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2078): error C2059: syntax error : ')'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2098): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2098): error C2371: 'IStream' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(136) : see declaration of 'IStream'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2098): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2120): error C2146: syntax error : missing ';' before identifier 'pwcsName'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2120): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2361): error C2065: '__RPC__in' : undeclared identifier
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2361): error C2146: syntax error : missing ')' before identifier 'IStream'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2361): warning C4229: anachronism used : modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2364): error C2059: syntax error : ')'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2375): error C2065: '__RPC__in' : undeclared identifier
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2375): error C2146: syntax error : missing ')' before identifier 'IStream'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2375): warning C4229: anachronism used : modifiers on data are ignored
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(2379): error C2059: syntax error : ')'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(3896): error C2061: syntax error : identifier '__RPC__deref_out_opt'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(3914): error C2061: syntax error : identifier '__RPC__in_opt'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(4072): error C2061: syntax error : identifier '__RPC__deref_out_opt'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(4495): error C2143: syntax error : missing ';' before '*'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(4495): error C2371: 'ISurrogate' : redefinition; different basic types
1> C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(234) : see declaration of 'ISurrogate'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(4495): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(5981): error C2061: syntax error : identifier '__RPC__out_ecount_part'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\objidlbase.h(5981): fatal error C1003: error count exceeds 100; stopping compilation
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Win SDK 8.0 Compile Errors

I am using simple-ipc-lib in my project. I have Visual Studio 2012 with Windows SDK 8.0. I also have VS2010 and Win SDK 7.0. I have sometimes installed and uninstalled Visual Studios because of some necessary work.
I have successfully build simple-ipc-lib in VS2012. Its unit-tests are also working fine.
I am now trying to develop an application with it. I made an empty project in VS2012 and included header files and lib. But on compiling it gives me errors
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(24): error C2146: syntax error : missing ';' before identifier 'fd1'
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(24): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(24): warning C4183: 'fd1': missing return type; assumed to be a member function returning 'int'
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(25): error C2146: syntax error : missing ';' before identifier 'fd2'
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(25): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(25): warning C4183: 'fd2': missing return type; assumed to be a member function returning 'int'
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(27): error C2146: syntax error : missing ';' before identifier 'OpenPipeServer'
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(27): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(27): warning C4183: 'OpenPipeServer': missing return type; assumed to be a member function returning 'int'
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(28): error C2146: syntax error : missing ';' before identifier 'OpenPipeClient'
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(28): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(28): error C2086: 'int PipePair::HANDLE' : redefinition
1> C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(27) : see declaration of 'PipePair::HANDLE'
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(28): warning C4183: 'OpenPipeClient': missing return type; assumed to be a member function returning 'int'
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(31): error C2146: syntax error : missing ';' before identifier 'srv_'
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(31): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(32): error C2146: syntax error : missing ';' before identifier 'cln_'
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(32): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(24): error C2065: 'srv_' : undeclared identifier
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(25): error C2065: 'cln_' : undeclared identifier
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(40): error C2061: syntax error : identifier 'HANDLE'
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(41): error C2061: syntax error : identifier 'HANDLE'
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(49): error C2146: syntax error : missing ';' before identifier 'pipe_'
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(49): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(46): error C2065: 'INVALID_HANDLE_VALUE' : undeclared identifier
1>C:\CEF\simple-ipc-lib\V8_ipc\deps\simple-ipc-lib-read-only\src\pipe_win.h(46): error C2065: 'pipe_' : undeclared identifier
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(46): error C2146: syntax error : missing ';' before identifier 'nLength'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(46): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(47): error C2146: syntax error : missing ';' before identifier 'lpSecurityDescriptor'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(47): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(48): error C2146: syntax error : missing ';' before identifier 'bInheritHandle'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(48): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(52): error C2146: syntax error : missing ';' before identifier 'Internal'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(52): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(53): error C2146: syntax error : missing ';' before identifier 'InternalHigh'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(53): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(56): error C2146: syntax error : missing ';' before identifier 'Offset'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(56): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(57): error C2146: syntax error : missing ';' before identifier 'OffsetHigh'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(57): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(59): error C2146: syntax error : missing ';' before identifier 'Pointer'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(59): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(62): error C2146: syntax error : missing ';' before identifier 'hEvent'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(62): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(66): error C2146: syntax error : missing ';' before identifier 'lpCompletionKey'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(66): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(68): error C2146: syntax error : missing ';' before identifier 'Internal'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(68): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(69): error C2146: syntax error : missing ';' before identifier 'dwNumberOfBytesTransferred'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(69): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(80): error C2146: syntax error : missing ';' before identifier 'dwLowDateTime'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(80): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(81): error C2146: syntax error : missing ';' before identifier 'dwHighDateTime'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(81): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(90): error C2146: syntax error : missing ';' before identifier 'wYear'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(90): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(91): error C2146: syntax error : missing ';' before identifier 'wMonth'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(91): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(92): error C2146: syntax error : missing ';' before identifier 'wDayOfWeek'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(92): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(93): error C2146: syntax error : missing ';' before identifier 'wDay'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(93): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(94): error C2146: syntax error : missing ';' before identifier 'wHour'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(94): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(95): error C2146: syntax error : missing ';' before identifier 'wMinute'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(95): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(96): error C2146: syntax error : missing ';' before identifier 'wSecond'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(96): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(97): error C2146: syntax error : missing ';' before identifier 'wMilliseconds'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(97): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(102): error C2146: syntax error : missing ';' before identifier 'dwFileAttributes'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(102): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(106): error C2146: syntax error : missing ';' before identifier 'nFileSizeHigh'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(106): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(107): error C2146: syntax error : missing ';' before identifier 'nFileSizeLow'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(107): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(108): error C2146: syntax error : missing ';' before identifier 'dwReserved0'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(108): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(109): error C2146: syntax error : missing ';' before identifier 'dwReserved1'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(109): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(110): error C2146: syntax error : missing ';' before identifier 'cFileName'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(110): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(110): error C2065: 'MAX_PATH' : undeclared identifier
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(111): error C2146: syntax error : missing ';' before identifier 'cAlternateFileName'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(111): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(119): error C2146: syntax error : missing ';' before identifier 'dwFileAttributes'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(119): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(123): error C2146: syntax error : missing ';' before identifier 'nFileSizeHigh'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(123): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(124): error C2146: syntax error : missing ';' before identifier 'nFileSizeLow'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(124): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(125): error C2146: syntax error : missing ';' before identifier 'dwReserved0'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(125): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(126): error C2146: syntax error : missing ';' before identifier 'dwReserved1'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(126): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(127): error C2146: syntax error : missing ';' before identifier 'cFileName'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(127): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(127): error C2065: 'MAX_PATH' : undeclared identifier
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(128): error C2146: syntax error : missing ';' before identifier 'cAlternateFileName'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(128): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(198): error C2146: syntax error : missing ';' before identifier 'CRITICAL_SECTION'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(198): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(199): error C2146: syntax error : missing ';' before identifier 'PCRITICAL_SECTION'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(199): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(202): error C2146: syntax error : missing ';' before identifier 'CRITICAL_SECTION_DEBUG'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(202): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(203): error C2146: syntax error : missing ';' before identifier 'PCRITICAL_SECTION_DEBUG'
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(203): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(208): error C2065: 'WINAPI' : undeclared identifier
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(208): error C2065: 'LPOVERLAPPED_COMPLETION_ROUTINE' : undeclared identifier
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(208): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>C:\Program Files (x86)\Windows Kits\8.0\Include\um\minwinbase.h(208): fatal error C1903: unable to recover from previous error(s); stopping compilation
Separate compilation of Simple IPC lib is doing right. I can not understand the errors in this. Please help.
Thanks in advance.

Build Error in the "refclock.h" header file, a part of Windows platform SDK

I am building a VC++ solution & using Win& SDK & Win8 SDK (including these paths in LIB & INCLUDE settings of VS2008).
But I am getting the following build error in refclock.h header file.
I don't understand how can we get the error in a standard MSFT header file. Can anyone kindly help me in getting this fixed?
c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(80) : error C2061: syntax error : identifier 'CAMSchedule'
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(139) : error C2143: syntax error : missing ';' before '*'
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(139) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(139) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(139) : warning C4183: 'GetSchedule': missing return type; assumed to be a member function returning 'int'
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(178) : error C2143: syntax error : missing ';' before '*'
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(178) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(178) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(139) : error C2065: 'm_pSchedule' : undeclared identifier
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(166) : error C2065: 'm_pSchedule' : undeclared identifier
2>c:\program files\microsoft sdks\windows\v7.0\samples\multimedia\directshow\baseclasses\refclock.h(166) : error C2227: left of '->GetEvent' must point to class/struct/union/generic type
It's caused by an error in the refclock.h header and the order your include directories are specified in Visual Studio.
You need to have the BaseClasses directory (Samples/Multimedia/DirectShow) before the SDK include directory, since they both have a schedule.h file and refclock.h uses <> not "" for the include.