EDN Admin
Well-known member
I took few files from vc6 to vs2010 and few files had included <vector>, and I always got errors in limits Header File.I spent hours finding out what could be the issue and noticed that inclusion of <vector> gives the following errors1>crogram
files (x86)microsoft visual studio 10.0vcincludelimits(102): error C2059: syntax error : constant<br/>
1> crogram files (x86)microsoft visual studio 10.0vcincludelimits(131) : see reference to class template instantiation std::numeric_limits<_Ty> being compiled<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(103): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(209): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(210): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(274): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(275): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(340): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(341): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(404): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(405): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(467): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(468): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(530): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(531): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(596): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(597): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(724): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(725): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(789): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(790): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(854): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(855): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(919): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(920): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1047): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1048): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1112): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1113): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1178): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1179): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1245): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1246): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1312): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1313): error C2334: unexpected token(s) preceding {; skipping apparent function body
and If I remove #include <vector>
I get these errors
error C2039: vector : is not a member of std
error C2061: syntax error : identifier vector
error C2143: syntax error : missing , before <
I dont know how to proceed further, Can anyone help ?
View the full article
files (x86)microsoft visual studio 10.0vcincludelimits(102): error C2059: syntax error : constant<br/>
1> crogram files (x86)microsoft visual studio 10.0vcincludelimits(131) : see reference to class template instantiation std::numeric_limits<_Ty> being compiled<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(103): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(209): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(210): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(274): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(275): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(340): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(341): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(404): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(405): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(467): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(468): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(530): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(531): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(596): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(597): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(724): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(725): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(789): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(790): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(854): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(855): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(919): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(920): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1047): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1048): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1112): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1113): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1178): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1179): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1245): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1246): error C2334: unexpected token(s) preceding {; skipping apparent function body<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1312): error C2059: syntax error : constant<br/>
1>crogram files (x86)microsoft visual studio 10.0vcincludelimits(1313): error C2334: unexpected token(s) preceding {; skipping apparent function body
and If I remove #include <vector>
I get these errors
error C2039: vector : is not a member of std
error C2061: syntax error : identifier vector
error C2143: syntax error : missing , before <
I dont know how to proceed further, Can anyone help ?
View the full article