按照下面链接的方法不能解决。
http://search.csdn.net/Expert/topic/2331/2331968.xml?temp=2.727908E-02
出现提示如下:
d:\microsoft visual studio\vc98\include\strstream(51) : error C2039: 'seekdir' : is not a member of 'ios'
d:\microsoft visual studio\vc98\include\ios.h(106) : see declaration of 'ios'
d:\microsoft visual studio\vc98\include\strstream(51) : error C2061: syntax error : identifier 'seekdir'
d:\microsoft visual studio\vc98\include\strstream(54) : error C2039: 'openmode' : is not a member of 'ios'
d:\microsoft visual studio\vc98\include\ios.h(106) : see declaration of 'ios'
d:\microsoft visual studio\vc98\include\strstream(54) : error C2061: syntax error : identifier 'openmode'
d:\microsoft visual studio\vc98\include\strstream(91) : error C2629: unexpected 'class std::ostrstream ('
d:\microsoft visual studio\vc98\include\strstream(91) : error C2238: unexpected token(s) preceding ';'
d:\microsoft visual studio\vc98\include\strstream(109) : error C2629: unexpected 'class std::strstream ('
d:\microsoft visual studio\vc98\include\strstream(109) : error C2238: unexpected token(s) preceding ';'
d:\microsoft visual studio\vc98\include\list(29) : error C2079: '_Value' uses undefined class 'VEmsPerfPoint'
e:\work\hw_prg0804\include\perfmgr\perfmanager.h(91) : see reference to class template instantiation 'std::list<class NECOCI::VEmsPerfPoint,class std::allocator<class NECOCI::VEmsPerfPoint> >' being compiled
d:\microsoft visual studio\vc98\include\functional(185) : error C2079: 'value' uses undefined class 'VEmsPerfPoint'
d:\microsoft visual studio\vc98\include\list(285) : see reference to class template instantiation 'std::binder2nd<struct std::not_equal_to<class NECOCI::VEmsPerfPoint> >' being compiled
e:\work\hw_prg0804\include\perfmgr\perfmanager.h(91) : see reference to class template instantiation 'std::list<class NECOCI::VEmsPerfPoint,class std::allocator<class NECOCI::VEmsPerfPoint> >' being compiled
http://search.csdn.net/Expert/topic/2331/2331968.xml?temp=2.727908E-02
出现提示如下:
d:\microsoft visual studio\vc98\include\strstream(51) : error C2039: 'seekdir' : is not a member of 'ios'
d:\microsoft visual studio\vc98\include\ios.h(106) : see declaration of 'ios'
d:\microsoft visual studio\vc98\include\strstream(51) : error C2061: syntax error : identifier 'seekdir'
d:\microsoft visual studio\vc98\include\strstream(54) : error C2039: 'openmode' : is not a member of 'ios'
d:\microsoft visual studio\vc98\include\ios.h(106) : see declaration of 'ios'
d:\microsoft visual studio\vc98\include\strstream(54) : error C2061: syntax error : identifier 'openmode'
d:\microsoft visual studio\vc98\include\strstream(91) : error C2629: unexpected 'class std::ostrstream ('
d:\microsoft visual studio\vc98\include\strstream(91) : error C2238: unexpected token(s) preceding ';'
d:\microsoft visual studio\vc98\include\strstream(109) : error C2629: unexpected 'class std::strstream ('
d:\microsoft visual studio\vc98\include\strstream(109) : error C2238: unexpected token(s) preceding ';'
d:\microsoft visual studio\vc98\include\list(29) : error C2079: '_Value' uses undefined class 'VEmsPerfPoint'
e:\work\hw_prg0804\include\perfmgr\perfmanager.h(91) : see reference to class template instantiation 'std::list<class NECOCI::VEmsPerfPoint,class std::allocator<class NECOCI::VEmsPerfPoint> >' being compiled
d:\microsoft visual studio\vc98\include\functional(185) : error C2079: 'value' uses undefined class 'VEmsPerfPoint'
d:\microsoft visual studio\vc98\include\list(285) : see reference to class template instantiation 'std::binder2nd<struct std::not_equal_to<class NECOCI::VEmsPerfPoint> >' being compiled
e:\work\hw_prg0804\include\perfmgr\perfmanager.h(91) : see reference to class template instantiation 'std::list<class NECOCI::VEmsPerfPoint,class std::allocator<class NECOCI::VEmsPerfPoint> >' being compiled
也许某个地方
use namespace 后没有恢复
#include <iostream>
#include <fstream>using namespace std;