返回信息流今天拿到了Zipios的开源码。
打开了其中的一个exmaple,但是出现了很多的错误:
c:\program files\microsoft visual studio\vc98\include\strstream(51) : error C2039: 'seekdir' : is not a member of 'ios'
c:\program files\microsoft visual studio\vc98\include\ios.h(106) : see declaration of 'ios'
c:\program files\microsoft visual studio\vc98\include\strstream(51) : error C2061: syntax error : identifier 'seekdir'
c:\program files\microsoft visual studio\vc98\include\strstream(54) : error C2039: 'openmode' : is not a member of 'ios'
c:\program files\microsoft visual studio\vc98\include\ios.h(106) : see declaration of 'ios'
c:\program files\microsoft visual studio\vc98\include\strstream(54) : error C2061: syntax error : identifier 'openmode'
c:\program files\microsoft visual studio\vc98\include\strstream(91) : error C2629: unexpected 'class std::ostrstream ('
c:\program files\microsoft visual studio\vc98\include\strstream(91) : error C2238: unexpected token(s) preceding ';'
c:\program files\microsoft visual studio\vc98\include\strstream(109) : error C2629: unexpected 'class std::strstream ('
c:\program files\microsoft visual studio\vc98\include\strstream(109) : error C2238: unexpected token(s) preceding ';'
e:\nufrontsoft\zip\zipios++\virtualseeker.h(11) : error C2039: 'cerr' : is not a member of 'std'
e:\nufrontsoft\zip\zipios++\virtualseeker.h(11) : error C2873: 'cerr' : symbol cannot be used in a using-declaration
e:\nufrontsoft\zip\zipios++\virtualseeker.h(26) : error C2039: 'seekdir' : is not a member of 'ios'
c:\program files\microsoft visual studio\vc98\include\ios.h(106) : see declaration of 'ios'
e:\nufrontsoft\zip\zipios++\virtualseeker.h(26) : error C2061: syntax error : identifier 'seekdir'
e:\nufrontsoft\zip\zipios++\virtualseeker.h(62) : error C2039: 'seekdir' : is not a member of 'ios'
c:\program files\microsoft visual studio\vc98\include\ios.h(106) : see declaration of 'ios'
e:\nufrontsoft\zip\zipios++\virtualseeker.h(62) : error C2061: syntax error : identifier 'seekdir'
e:\nufrontsoft\zip\zipios++\virtualseeker.h(63) : error C2065: 'sd' : undeclared identifier
e:\nufrontsoft\zip\zipios++\virtualseeker.h(70) : error C2678: binary '<<' : no operator defined which takes a left-hand operand of type 'class ostream' (or there is no acceptable conversion)
e:\nufrontsoft\zip\example_zip.cpp(33) : error C2678: binary '<<' : no operator defined which takes a left-hand operand of type 'class ostream_withassign' (or there is no acceptable conversion)
e:\nufrontsoft\zip\example_zip.cpp(37) : error C2065: 'auto_ptr' : undeclared identifier
e:\nufrontsoft\zip\example_zip.cpp(37) : error C2872: 'istream' : ambiguous symbol
e:\nufrontsoft\zip\example_zip.cpp(37) : error C2275: 'istream' : illegal use of this type as an expression
c:\program files\microsoft visual studio\vc98\include\istream.h(64) : see declaration of 'istream'
e:\nufrontsoft\zip\example_zip.cpp(37) : error C2065: 'is' : undeclared identifier
e:\nufrontsoft\zip\example_zip.cpp(39) : error C2678: binary '<<' : no operator defined which takes a left-hand operand of type 'class ostream' (or there is no acceptable conversion)
e:\nufrontsoft\zip\example_zip.cpp(41) : error C2227: left of '->rdbuf' must point to class/struct/union
请问会是什么原因引起的?
PS:好像源码是05年前的,不知道会不会和VC的版本有关??
这是一条镜像帖。来源:北邮人论坛 / cpp / #6472同步于 2008/5/8
该镜像源已超过 30 天没有更新,可能在源站已被删除。
CPP机器人发帖
请教用过Zipios++的牛人啊~~~~
mapple
2008/5/8镜像同步1 回复
订阅后,新回复会通过你的通知中心匿名送达。
1 条回复