:sad: There's something wrong with Visual Studio .Net 2003 every code I write, it could even be a simple cout code, ends up giving me 216 build errors no matter what. All the build errors are from c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include

I have a final due and I can't do it if I can't figure out what's wrong with my compiler.Please help!
These are the errors regardless of what the code is, their always the same!

Build Log ------- Build started: Project: Final, Configuration: Debug|Win32 -------

Command Lines This edition of Visual C++ does not support the optimizing compiler.
This edition of Visual C++ does not support the optimizing compiler.
Creating temporary file "c:\Documents and Settings\Lisa\My Documents\Visual Studio Projects\Final\Debug\RSP000001.rsp" with contents

/D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Gm /EHsc /RTC1 /MLd /Fo"Debug/" /Fd"Debug/vc70.pdb" /W3 /c /Wp64 /ZI /TP
".\test.cpp"
".\Merge.cpp"

Creating command line "cl.exe @"c:\Documents and Settings\Lisa\My Documents\Visual Studio Projects\Final\Debug\RSP000001.rsp" /nologo"
 Output Window      Compiling...
test.cpp
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo.h(47) : error C2146: syntax error : missing ';' before identifier '_C_LIB_DECL'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo.h(47) : error C2501: '_C_STD_BEGIN' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo.h(48) : error C2143: syntax error : missing ';' before ''
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo.h(48) : error C2501: '_C_LIB_DECL' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stddef.h(28) : error C2146: syntax error : missing ';' before identifier '_C_STD_END'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stddef.h(28) : error C2501: '_END_C_LIB_DECL' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stddef.h(28) : error C2144: syntax error : 'int' should be preceded by ';'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stddef.h(28) : error C2501: '_C_STD_END' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstddef(67) : error C2143: syntax error : missing ';' before 'enum [tag]'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstddef(67) : error C2501: '_STD_BEGIN' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(14) : error C2146: syntax error : missing ';' before identifier '_STD_BEGIN'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(14) : error C2501: '_STD_END' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(15) : error C2143: syntax error : missing ';' before ''
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(15) : error C2501: '_STD_BEGIN' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(15) : error C2086: 'int _STD_BEGIN' : redefinition
        c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstddef(66) : see declaration of '_STD_BEGIN'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(55) : error C2653: 'std' : is not a class or namespace name
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(65) : error C2146: syntax error : missing ';' before identifier '_Getname'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(65) : error C2501: '_Locinfo::string' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(68) : warning C4183: '_Getname': missing return type; assumed to be a member function returning 'int'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(139) : error C2146: syntax error : missing ';' before identifier '_Lock'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(139) : error C2501: '_Locinfo::_Lockit' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(139) : error C2501: '_Locinfo::_Lock' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(140) : error C2146: syntax error : missing ';' before identifier '_Days'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(140) : error C2501: '_Locinfo::string' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(140) : error C2501: '_Locinfo::_Days' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(141) : error C2146: syntax error : missing ';' before identifier '_Months'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(141) : error C2501: '_Locinfo::string' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(141) : error C2501: '_Locinfo::_Months' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(142) : error C2146: syntax error : missing ';' before identifier '_Oldlocname'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(142) : error C2501: '_Locinfo::string' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(142) : error C2501: '_Locinfo::_Oldlocname' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(143) : error C2146: syntax error : missing ';' before identifier '_Newlocname'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(143) : error C2501: '_Locinfo::string' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(143) : error C2501: '_Locinfo::_Newlocname' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(18) : error C2146: syntax error : missing ';' before identifier '_STD_BEGIN'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(18) : error C2501: '_STD_END' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(18) : error C2086: 'int _STD_END' : redefinition
        c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(11) : see declaration of '_STD_END'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(18) : error C2143: syntax error : missing ';' before ''template<''
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(18) : error C2501: '_STD_BEGIN' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(18) : error C2086: 'int _STD_BEGIN' : redefinition
        c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstddef(66) : see declaration of '_STD_BEGIN'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(169) : error C2146: syntax error : missing ';' before identifier '_Name'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(169) : error C2501: 'locale::_Locimp::_STRING_CRT' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(169) : error C2501: 'locale::_Locimp::_Name' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(173) : error C2146: syntax error : missing ';' before identifier 'locale'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(173) : error C2501: 'locale::_DEPRECATED' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(179) : error C2143: syntax error : missing ',' before '<'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(261) : error C2146: syntax error : missing ';' before identifier 'name'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(261) : error C2501: 'locale::string' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(264) : warning C4183: 'name': missing return type; assumed to be a member function returning 'int'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(303) : error C2146: syntax error : missing ';' before identifier 'locale'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(303) : error C2433: '_DEPRECATED' : 'inline' not permitted on data declarations
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(303) : error C2501: '_DEPRECATED' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(303) : error C2061: syntax error : identifier '_Facet'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(350) : error C2143: syntax error : missing ';' before 'const'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(350) : error C2433: '_DEPRECATED' : 'inline' not permitted on data declarations
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(350) : error C2501: '_DEPRECATED' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(350) : error C2086: 'int _DEPRECATED' : redefinition
        c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(303) : see declaration of '_DEPRECATED'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(350) : error C2143: syntax error : missing ';' before '&'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(350) : error C2143: syntax error : missing ',' before '*'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(417) : error C2065: '_Mbst1' : undeclared identifier
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(417) : error C3861: '_Mbstinit': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(418) : error C3861: '_Mbst1': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(439) : error C3861: '_Mbstinit': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(439) : error C3861: '_Mbst1': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(440) : error C3861: '_Mbst1': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(470) : error C3861: '_Mbstinit': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(470) : error C3861: '_Mbst1': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(475) : error C3861: '_Mbst1': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(479) : error C2065: '_NEW_CRT' : undeclared identifier
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(479) : error C2146: syntax error : missing ';' before identifier 'wchar_t'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(479) : error C2275: 'wchar_t' : illegal use of this type as an expression
        c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stdio.h(77) : see declaration of 'wchar_t'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(481) : error C2065: '_Mbst2' : undeclared identifier
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(481) : error C3861: '_Mbstinit': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(484) : error C3861: '_Mbst2': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(32) : error C2146: syntax error : missing ';' before identifier '_STD_BEGIN'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(32) : error C2501: '_STD_END' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(32) : error C2086: 'int _STD_END' : redefinition
        c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(11) : see declaration of '_STD_END'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(32) : error C2143: syntax error : missing ';' before ''template<''
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(32) : error C2501: '_STD_BEGIN' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(32) : error C2086: 'int _STD_BEGIN' : redefinition
        c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstddef(66) : see declaration of '_STD_BEGIN'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(185) : error C2653: 'std' : is not a class or namespace name
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(185) : error C2146: syntax error : missing ';' before identifier 'streamoff'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(186) : error C2653: 'std' : is not a class or namespace name
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(186) : error C2146: syntax error : missing ';' before identifier 'streampos'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(198) : error C2504: 'runtime_error' : base class undefined
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(200) : error C2059: syntax error : ''
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(200) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(356) : error C2146: syntax error : missing ';' before identifier 'precision'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(356) : error C2501: 'ios_base::streamsize' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(359) : warning C4183: 'precision': missing return type; assumed to be a member function returning 'int'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(361) : error C2146: syntax error : missing ';' before identifier 'precision'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(361) : error C2501: 'ios_base::streamsize' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(361) : error C2061: syntax error : identifier 'streamsize'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(366) : warning C4183: 'precision': missing return type; assumed to be a member function returning 'int'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(368) : error C2146: syntax error : missing ';' before identifier 'width'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(368) : error C2501: 'ios_base::streamsize' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(371) : warning C4183: 'width': missing return type; assumed to be a member function returning 'int'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(373) : error C2146: syntax error : missing ';' before identifier 'width'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(373) : error C2501: 'ios_base::streamsize' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(373) : error C2061: syntax error : identifier 'streamsize'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(378) : warning C4183: 'width': missing return type; assumed to be a member function returning 'int'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(465) : error C2146: syntax error : missing ';' before identifier '_Prec'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(465) : error C2501: 'ios_base::streamsize' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(465) : error C2501: 'ios_base::_Prec' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(466) : error C2146: syntax error : missing ';' before identifier '_Wide'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(466) : error C2501: 'ios_base::streamsize' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(466) : error C2501: 'ios_base::_Wide' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(466) : fatal error C1003: error count exceeds 100; stopping compilation
Merge.cpp
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo.h(47) : error C2146: syntax error : missing ';' before identifier '_C_LIB_DECL'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo.h(47) : error C2501: '_C_STD_BEGIN' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo.h(48) : error C2143: syntax error : missing ';' before ''
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo.h(48) : error C2501: '_C_LIB_DECL' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stddef.h(28) : error C2146: syntax error : missing ';' before identifier '_C_STD_END'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stddef.h(28) : error C2501: '_END_C_LIB_DECL' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stddef.h(28) : error C2144: syntax error : 'int' should be preceded by ';'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stddef.h(28) : error C2501: '_C_STD_END' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstddef(67) : error C2143: syntax error : missing ';' before 'enum [tag]'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstddef(67) : error C2501: '_STD_BEGIN' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(14) : error C2146: syntax error : missing ';' before identifier '_STD_BEGIN'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(14) : error C2501: '_STD_END' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(15) : error C2143: syntax error : missing ';' before ''
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(15) : error C2501: '_STD_BEGIN' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(15) : error C2086: 'int _STD_BEGIN' : redefinition
        c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstddef(66) : see declaration of '_STD_BEGIN'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(55) : error C2653: 'std' : is not a class or namespace name
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(65) : error C2146: syntax error : missing ';' before identifier '_Getname'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(65) : error C2501: '_Locinfo::string' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(68) : warning C4183: '_Getname': missing return type; assumed to be a member function returning 'int'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(139) : error C2146: syntax error : missing ';' before identifier '_Lock'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(139) : error C2501: '_Locinfo::_Lockit' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(139) : error C2501: '_Locinfo::_Lock' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(140) : error C2146: syntax error : missing ';' before identifier '_Days'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(140) : error C2501: '_Locinfo::string' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(140) : error C2501: '_Locinfo::_Days' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(141) : error C2146: syntax error : missing ';' before identifier '_Months'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(141) : error C2501: '_Locinfo::string' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(141) : error C2501: '_Locinfo::_Months' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(142) : error C2146: syntax error : missing ';' before identifier '_Oldlocname'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(142) : error C2501: '_Locinfo::string' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(142) : error C2501: '_Locinfo::_Oldlocname' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(143) : error C2146: syntax error : missing ';' before identifier '_Newlocname'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(143) : error C2501: '_Locinfo::string' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(143) : error C2501: '_Locinfo::_Newlocname' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(18) : error C2146: syntax error : missing ';' before identifier '_STD_BEGIN'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(18) : error C2501: '_STD_END' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(18) : error C2086: 'int _STD_END' : redefinition
        c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(11) : see declaration of '_STD_END'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(18) : error C2143: syntax error : missing ';' before ''template<''
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(18) : error C2501: '_STD_BEGIN' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(18) : error C2086: 'int _STD_BEGIN' : redefinition
        c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstddef(66) : see declaration of '_STD_BEGIN'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(169) : error C2146: syntax error : missing ';' before identifier '_Name'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(169) : error C2501: 'locale::_Locimp::_STRING_CRT' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(169) : error C2501: 'locale::_Locimp::_Name' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(173) : error C2146: syntax error : missing ';' before identifier 'locale'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(173) : error C2501: 'locale::_DEPRECATED' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(179) : error C2143: syntax error : missing ',' before '<'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(261) : error C2146: syntax error : missing ';' before identifier 'name'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(261) : error C2501: 'locale::string' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(264) : warning C4183: 'name': missing return type; assumed to be a member function returning 'int'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(303) : error C2146: syntax error : missing ';' before identifier 'locale'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(303) : error C2433: '_DEPRECATED' : 'inline' not permitted on data declarations
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(303) : error C2501: '_DEPRECATED' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(303) : error C2061: syntax error : identifier '_Facet'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(350) : error C2143: syntax error : missing ';' before 'const'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(350) : error C2433: '_DEPRECATED' : 'inline' not permitted on data declarations
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(350) : error C2501: '_DEPRECATED' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(350) : error C2086: 'int _DEPRECATED' : redefinition
        c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(303) : see declaration of '_DEPRECATED'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(350) : error C2143: syntax error : missing ';' before '&'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(350) : error C2143: syntax error : missing ',' before '*'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(417) : error C2065: '_Mbst1' : undeclared identifier
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(417) : error C3861: '_Mbstinit': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(418) : error C3861: '_Mbst1': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(439) : error C3861: '_Mbstinit': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(439) : error C3861: '_Mbst1': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(440) : error C3861: '_Mbst1': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(470) : error C3861: '_Mbstinit': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(470) : error C3861: '_Mbst1': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(475) : error C3861: '_Mbst1': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(479) : error C2065: '_NEW_CRT' : undeclared identifier
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(479) : error C2146: syntax error : missing ';' before identifier 'wchar_t'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(479) : error C2275: 'wchar_t' : illegal use of this type as an expression
        c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\stdio.h(77) : see declaration of 'wchar_t'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(481) : error C2065: '_Mbst2' : undeclared identifier
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(481) : error C3861: '_Mbstinit': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocale(484) : error C3861: '_Mbst2': identifier not found, even with argument-dependent lookup
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(32) : error C2146: syntax error : missing ';' before identifier '_STD_BEGIN'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(32) : error C2501: '_STD_END' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(32) : error C2086: 'int _STD_END' : redefinition
        c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xlocinfo(11) : see declaration of '_STD_END'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(32) : error C2143: syntax error : missing ';' before ''template<''
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(32) : error C2501: '_STD_BEGIN' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(32) : error C2086: 'int _STD_BEGIN' : redefinition
        c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xstddef(66) : see declaration of '_STD_BEGIN'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(185) : error C2653: 'std' : is not a class or namespace name
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(185) : error C2146: syntax error : missing ';' before identifier 'streamoff'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(186) : error C2653: 'std' : is not a class or namespace name
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(186) : error C2146: syntax error : missing ';' before identifier 'streampos'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(198) : error C2504: 'runtime_error' : base class undefined
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(200) : error C2059: syntax error : ''
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(200) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(356) : error C2146: syntax error : missing ';' before identifier 'precision'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(356) : error C2501: 'ios_base::streamsize' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(359) : warning C4183: 'precision': missing return type; assumed to be a member function returning 'int'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(361) : error C2146: syntax error : missing ';' before identifier 'precision'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(361) : error C2501: 'ios_base::streamsize' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(361) : error C2061: syntax error : identifier 'streamsize'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(366) : warning C4183: 'precision': missing return type; assumed to be a member function returning 'int'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(368) : error C2146: syntax error : missing ';' before identifier 'width'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(368) : error C2501: 'ios_base::streamsize' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(371) : warning C4183: 'width': missing return type; assumed to be a member function returning 'int'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(373) : error C2146: syntax error : missing ';' before identifier 'width'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(373) : error C2501: 'ios_base::streamsize' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(373) : error C2061: syntax error : identifier 'streamsize'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(378) : warning C4183: 'width': missing return type; assumed to be a member function returning 'int'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(465) : error C2146: syntax error : missing ';' before identifier '_Prec'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(465) : error C2501: 'ios_base::streamsize' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(465) : error C2501: 'ios_base::_Prec' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(466) : error C2146: syntax error : missing ';' before identifier '_Wide'
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(466) : error C2501: 'ios_base::streamsize' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(466) : error C2501: 'ios_base::_Wide' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\xiosbase(466) : fatal error C1003: error count exceeds 100; stopping compilation
Generating Code...
 Results      Build log was saved at "file://c:\Documents and Settings\Lisa\My Documents\Visual Studio Projects\Final\Debug\BuildLog.htm"
Final - 204 error(s), 12 warning(s)

Most probably a missing semicolon somewhere. Can't say much without looking at code. Attach all the project files.

i have exactly the same problem. I don't think that the problem will be a missing semicolon. I suspect that it's something relationed with the configuration of the project in the compiler (project settings or properties), because I've this problem with a precompiled and tested library on the compiler embedded visual c++. Please, if you find any solution tell me. I'll do the same;
Thanks.

This article has been dead for over six months. Start a new discussion instead.