按照下面链接的方法不能解决。
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

解决方案 »

  1.   

    看看是不是命名空间的问题
    也许某个地方
    use namespace 后没有恢复
      

  2.   

    #include <ios>
    #include <iostream>
    #include <fstream>using namespace std;
      

  3.   

    for ( std::strstream sstr; getline(fileOfAddPerfPnt, sstr); ) {这是用到strstream的地方
      

  4.   

    将#include <sstream>并且将strstream改为stringstream问题消失。各位请继续。
      

  5.   

    将#include <strstream>改为#include <sstream>,并且将strstream改为stringstream问题消失。各位请继续。