郁闷死了。怎么会报这么错??那些我都没动到的??那位高手帮我解答一下,谢谢大家了!!!Compiling...
ImageQuality.cpp
d:\program files\microsoft visual studio\vc98\include\utility(152) : warning C4159: #pragma pack(pop,...) : has popped previously pushed identifier '_CRT_PACKING'
d:\program files\microsoft visual studio\vc98\include\xutility(101) : error C2995: 'swap' : template function has already been defined
        d:\program files\microsoft visual studio\vc98\include\utility(16) : see declaration of 'swap'
d:\program files\microsoft visual studio\vc98\include\xstring(34) : error C2143: syntax error : missing ';' before '<'
        d:\program files\microsoft visual studio\vc98\include\xstring(597) : see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>' being compiled
d:\program files\microsoft visual studio\vc98\include\xstring(34) : error C2059: syntax error : '<'
        d:\program files\microsoft visual studio\vc98\include\xstring(597) : see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>' being compiled
d:\program files\microsoft visual studio\vc98\include\xstring(36) : error C2238: unexpected token(s) preceding ';'
        d:\program files\microsoft visual studio\vc98\include\xstring(597) : see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>' being compiled
d:\program files\microsoft visual studio\vc98\include\xstring(37) : error C2059: syntax error : '<'
        d:\program files\microsoft visual studio\vc98\include\xstring(597) : see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>' being compiled
d:\program files\microsoft visual studio\vc98\include\xstring(39) : error C2238: unexpected token(s) preceding ';'
        d:\program files\microsoft visual studio\vc98\include\xstring(597) : see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>' being compiled
d:\program files\microsoft visual studio\vc98\include\xstring(316) : error C2146: syntax error : missing ';' before identifier 'rbegin'
        d:\program files\microsoft visual studio\vc98\include\xstring(597) : see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>' being compiled
d:\program files\microsoft visual studio\vc98\include\xstring(316) : error C2501: 'const_reverse_iterator' : missing storage-class or type specifiers
        d:\program files\microsoft visual studio\vc98\include\xstring(597) : see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>' being compiled
d:\program files\microsoft visual studio\vc98\include\xstring(317) : warning C4183: 'rbegin': member function definition looks like a ctor, but name does not match enclosing class
        d:\program files\microsoft visual studio\vc98\include\xstring(597) : see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>' being compiled
d:\program files\microsoft visual studio\vc98\include\xstring(320) : error C2146: syntax error : missing ';' before identifier 'rend'
        d:\program files\microsoft visual studio\vc98\include\xstring(597) : see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>' being compiled
d:\program files\microsoft visual studio\vc98\include\xstring(320) : error C2501: 'const_reverse_iterator' : missing storage-class or type specifiers
        d:\program files\microsoft visual studio\vc98\include\xstring(597) : see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>' being compiled
d:\program files\microsoft visual studio\vc98\include\xstring(321) : warning C4183: 'rend': member function definition looks like a ctor, but name does not match enclosing class
        d:\program files\microsoft visual studio\vc98\include\xstring(597) : see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>' being compiled
d:\program files\microsoft visual studio\vc98\include\xstring(34) : error C2143: syntax error : missing ';' before '<'
        d:\program files\microsoft visual studio\vc98\include\xstring(605) : see reference to class template instantiation 'std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' being compiled
d:\program files\microsoft visual studio\vc98\include\xstring(34) : error C2059: syntax error : '<'

解决方案 »

  1.   

    d:\program files\microsoft visual studio\vc98\include\xstring(605) : see reference to class template instantiation 'std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' being compiled
    d:\program files\microsoft visual studio\vc98\include\xstring(36) : error C2238: unexpected token(s) preceding ';'
            d:\program files\microsoft visual studio\vc98\include\xstring(605) : see reference to class template instantiation 'std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' being compiled
    d:\program files\microsoft visual studio\vc98\include\xstring(37) : error C2059: syntax error : '<'
            d:\program files\microsoft visual studio\vc98\include\xstring(605) : see reference to class template instantiation 'std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' being compiled
    d:\program files\microsoft visual studio\vc98\include\xstring(39) : error C2238: unexpected token(s) preceding ';'
            d:\program files\microsoft visual studio\vc98\include\xstring(605) : see reference to class template instantiation 'std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' being compiled
    d:\program files\microsoft visual studio\vc98\include\xstring(316) : error C2146: syntax error : missing ';' before identifier 'rbegin'
            d:\program files\microsoft visual studio\vc98\include\xstring(605) : see reference to class template instantiation 'std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' being compiled
    d:\program files\microsoft visual studio\vc98\include\xstring(316) : error C2501: 'const_reverse_iterator' : missing storage-class or type specifiers
            d:\program files\microsoft visual studio\vc98\include\xstring(605) : see reference to class template instantiation 'std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' being compiled
    d:\program files\microsoft visual studio\vc98\include\xstring(317) : warning C4183: 'rbegin': member function definition looks like a ctor, but name does not match enclosing class
            d:\program files\microsoft visual studio\vc98\include\xstring(605) : see reference to class template instantiation 'std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' being compiled
    d:\program files\microsoft visual studio\vc98\include\xstring(320) : error C2146: syntax error : missing ';' before identifier 'rend'
            d:\program files\microsoft visual studio\vc98\include\xstring(605) : see reference to class template instantiation 'std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' being compiled
    d:\program files\microsoft visual studio\vc98\include\xstring(320) : error C2501: 'const_reverse_iterator' : missing storage-class or type specifiers
            d:\program files\microsoft visual studio\vc98\include\xstring(605) : see reference to class template instantiation 'std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' being compiled
    d:\program files\microsoft visual studio\vc98\include\xstring(321) : warning C4183: 'rend': member function definition looks like a ctor, but name does not match enclosing class
            d:\program files\microsoft visual studio\vc98\include\xstring(605) : see reference to class template instantiation 'std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' being compiled
    d:\program files\microsoft visual studio\vc98\include\xstring(34) : error C2143: syntax error : missing ';' before '<'
            d:\program files\microsoft visual studio\vc98\include\xstring(606) : see reference to class template instantiation 'std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >' being compil
    ed
    d:\program files\microsoft visual studio\vc98\include\xstring(34) : error C2059: syntax error : '<'
            d:\program files\microsoft visual studio\vc98\include\xstring(606) : see reference to class template instantiation 'std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >' being compil
    ed
    d:\program files\microsoft visual studio\vc98\include\xstring(36) : error C2238: unexpected token(s) preceding ';'
            d:\program files\microsoft visual studio\vc98\include\xstring(606) : see reference to class template instantiation 'std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >' being compil
    ed
    d:\program files\microsoft visual studio\vc98\include\xstring(37) : error C2059: syntax error : '<'
            d:\program files\microsoft visual studio\vc98\include\xstring(606) : see reference to class template instantiation 'std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >' being compil
    ed
    d:\program files\microsoft visual studio\vc98\include\xstring(39) : error C2238: unexpected token(s) preceding ';'
            d:\program files\microsoft visual studio\vc98\include\xstring(606) : see reference to class template instantiation 'std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >' being compil
    ed
    d:\program files\microsoft visual studio\vc98\include\xstring(316) : error C2146: syntax error : missing ';' before identifier 'rbegin'
            d:\program files\microsoft visual studio\vc98\include\xstring(606) : see reference to class template instantiation 'std::basic_string<unsigned short,struct std::char_traits<unsigned short>,class std::allocator<unsigned short> >' being compil
    ed
    d:\program files\microsoft visual studio\vc98\include\xstring(316) : error C2501: 'const_reverse_iterator' : missing storage-class or type specifiers
      

  2.   

    instantiation 'std::istream_iterator<_U,_E,`template-parameter260'>' being compiled
    d:\program files\microsoft visual studio\vc98\include\iterator(152) : error C2143: syntax error : missing ',' before '<'
            d:\program files\microsoft visual studio\vc98\include\iterator(180) : see reference to class template instantiation 'std::istream_iterator<_U,_E,`template-parameter260'>' being compiled
    d:\program files\microsoft visual studio\vc98\include\iterator(152) : error C2059: syntax error : '<'
            d:\program files\microsoft visual studio\vc98\include\iterator(180) : see reference to class template instantiation 'std::istream_iterator<_U,_E,`template-parameter260'>' being compiled
    d:\program files\microsoft visual studio\vc98\include\iterator(193) : error C2504: 'iterator' : base class undefined
            d:\program files\microsoft visual studio\vc98\include\iterator(216) : see reference to class template instantiation 'std::ostream_iterator<_U,_E,`template-parameter260'>' being compiled
    d:\program files\microsoft visual studio\vc98\include\iterator(193) : error C2143: syntax error : missing ',' before '<'
            d:\program files\microsoft visual studio\vc98\include\iterator(216) : see reference to class template instantiation 'std::ostream_iterator<_U,_E,`template-parameter260'>' being compiled
    d:\program files\microsoft visual studio\vc98\include\iterator(193) : error C2059: syntax error : '<'
            d:\program files\microsoft visual studio\vc98\include\iterator(216) : see reference to class template instantiation 'std::ostream_iterator<_U,_E,`template-parameter260'>' being compiled
    d:\program files\microsoft visual studio\vc98\include\iterator(219) : error C2143: syntax error : missing ',' before '<'
    d:\program files\microsoft visual studio\vc98\include\iterator(219) : error C2059: syntax error : '<'
    d:\program files\microsoft visual studio\vc98\include\iterator(229) : error C2061: syntax error : identifier 'input_iterator_tag'
    d:\program files\microsoft visual studio\vc98\include\iterator(233) : error C2061: syntax error : identifier 'forward_iterator_tag'
    d:\program files\microsoft visual studio\vc98\include\iterator(235) : error C2995: '_Advance' : template function has already been defined
            d:\program files\microsoft visual studio\vc98\include\iterator(229) : see declaration of '_Advance'
    d:\program files\microsoft visual studio\vc98\include\iterator(237) : error C2061: syntax error : identifier 'bidirectional_iterator_tag'
    d:\program files\microsoft visual studio\vc98\include\iterator(242) : error C2954: template definitions cannot nest
    d:\program files\microsoft visual studio\vc98\include\iterator(243) : error C2061: syntax error : identifier 'random_access_iterator_tag'
    d:\program files\microsoft visual studio\vc98\include\iterator(246) : error C2954: template definitions cannot nest
    d:\program files\microsoft visual studio\vc98\include\iterator(247) : error C2143: syntax error : missing ',' before '<'
    d:\program files\microsoft visual studio\vc98\include\iterator(247) : error C2059: syntax error : '<'
    d:\program files\microsoft visual studio\vc98\include\memory(52) : error C2504: 'iterator' : base class undefined
            d:\program files\microsoft visual studio\vc98\include\memory(72) : see reference to class template instantiation 'std::raw_storage_iterator<_OI,_Ty>' being compiled
    d:\program files\microsoft visual studio\vc98\include\memory(52) : error C2143: syntax error : missing ',' before '<'
            d:\program files\microsoft visual studio\vc98\include\memory(72) : see reference to class template instantiation 'std::raw_storage_iterator<_OI,_Ty>' being compiled
    d:\program files\microsoft visual studio\vc98\include\memory(52) : error C2059: syntax error : '<'
            d:\program files\microsoft visual studio\vc98\include\memory(72) : see reference to class template instantiation 'std::raw_storage_iterator<_OI,_Ty>' being compiled
    d:\program files\microsoft visual studio\vc98\include\memory(76) : error C2504: 'iterator' : base class undefined
            d:\program files\microsoft visual studio\vc98\include\memory(131) : see reference to class template instantiation 'std::_Temp_iterator<_Ty>' being compiled
    d:\program files\microsoft visual studio\vc98\include\memory(76) : error C2143: syntax error : missing ',' before '<'
            d:\program files\microsoft visual studio\vc98\include\memory(131) : see reference to class template instantiation 'std::_Temp_iterator<_Ty>' being compiled
    d:\program files\microsoft visual studio\vc98\include\memory(76) : error C2059: syntax error : '<'
            d:\program files\microsoft visual studio\vc98\include\memory(131) : see reference to class template instantiation 'std::_Temp_iterator<_Ty>' being compiled
    d:\program files\microsoft visual studio\vc98\include\xtree(61) : error C2504: '_Bidit' : base class undefined
            d:\program files\microsoft visual studio\vc98\include\xtree(602) : see reference to class template instantiation 'std::_Tree<_K,_Ty,_Kfn,_Pr,_A>' being compiled
    d:\program files\microsoft visual studio\vc98\include\xtree(61) : error C2143: syntax error : missing ',' before '<'
            d:\program files\microsoft visual studio\vc98\include\xtree(602) : see reference to class template instantiation 'std::_Tree<_K,_Ty,_Kfn,_Pr,_A>' being compiled
    d:\program files\microsoft visual studio\vc98\include\xtree(61) : error C2059: syntax error : '<'
            d:\program files\microsoft visual studio\vc98\include\xtree(602) : see reference to class template instantiation 'std::_Tree<_K,_Ty,_Kfn,_Pr,_A>' being compiled
    d:\program files\microsoft visual studio\vc98\include\xtree(61) : error C2504: '_Bidit' : base class undefined
            d:\program files\microsoft visual studio\vc98\include\map(46) : see reference to class template instantiation 'std::_Tree<unsigned long,struct std::pair<unsigned long const ,char const *>,struct std::map<unsigned long,char const *,struct std
    ::less<unsigned long>,class std::allocator<char const *> >::_Kfn,struct std::less<unsigned long>,class std::allocator<char const *> >' being compiled
            f:\canon相机编程\initcamera 3-20\imagequality.h(28) : see reference to class template instantiation 'std::map<unsigned long,char const *,struct std::less<unsigned long>,class std::allocator<char const *> >' being compiled
    d:\program files\microsoft visual studio\vc98\include\xtree(61) : error C2143: syntax error : missing ',' before '<'
            d:\program files\microsoft visual studio\vc98\include\map(46) : see reference to class template instantiation 'std::_Tree<unsigned long,struct std::pair<unsigned long const ,char const *>,struct std::map<unsigned long,char const *,struct std
    ::less<unsigned long>,class std::allocator<char const *> >::_Kfn,struct std::less<unsigned long>,class std::allocator<char const *> >' being compiled
            f:\canon相机编程\initcamera 3-20\imagequality.h(28) : see reference to class template instantiation 'std::map<unsigned long,char const *,struct std::less<unsigned long>,class std::allocator<char const *> >' being compiled
    d:\program files\microsoft visual studio\vc98\include\xtree(61) : error C2059: syntax error : '<'
            d:\program files\microsoft visual studio\vc98\include\map(46) : see reference to class template instantiation 'std::_Tree<unsigned long,struct std::pair<unsigned long const ,char const *>,struct std::map<unsigned long,char const *,struct std
    ::less<unsigned long>,class std::allocator<char const *> >::_Kfn,struct std::less<unsigned long>,class std::allocator<char const *> >' being compiled
            f:\canon相机编程\initcamera 3-20\imagequality.h(28) : see reference to class template instantiation 'std::map<unsigned long,char const *,struct std::less<unsigned long>,class std::allocator<char const *> >' being compiled
    Error executing cl.exe.
    Creating browse info file...InitCamera.exe - 69 error(s), 7 warning(s)