阅读:1554回复:4
XP编译DriverWorks库的问题
DriverWorks安装完成后用VC编译库没成功,系统是XP SP2,安装的是win2003 DDK,VC6 Pro,提示
kstl.cpp ..\..\Common\Include\stl\stl_iterator.h(51) : warning C4346: '_Container::value_type' : dependent name is not a type prefix with 'typename' to indicate a type ..\..\Common\Include\stl\stl_iterator.h(58) : see reference to class template instantiation 'back_insert_iterator<_Container>' being compiled ..\..\Common\Include\stl\stl_iterator.h(51) : error C2061: syntax error : identifier 'value_type' ..\..\Common\Include\stl\stl_iterator.h(51) : error C2805: binary 'operator =' has too few parameters ..\..\Common\Include\stl\stl_iterator.h(51) : error C2333: 'back_insert_iterator<_Container>::operator`='' : error in function declaration; skipping function body ..\..\Common\Include\stl\stl_iterator.h(90) : warning C4346: '_Container::value_type' : dependent name is not a type prefix with 'typename' to indicate a type ..\..\Common\Include\stl\stl_iterator.h(97) : see reference to class template instantiation 'front_insert_iterator<_Container>' being compiled ..\..\Common\Include\stl\stl_iterator.h(90) : error C2061: syntax error : identifier 'value_type' ..\..\Common\Include\stl\stl_iterator.h(90) : error C2805: binary 'operator =' has too few parameters ..\..\Common\Include\stl\stl_iterator.h(90) : error C2333: 'front_insert_iterator<_Container>::operator`='' : error in function declaration; skipping function body ..\..\Common\Include\stl\stl_iterator.h(119) : warning C4346: '_Container::iterator' : dependent name is not a type prefix with 'typename' to indicate a type ..\..\Common\Include\stl\stl_iterator.h(139) : see reference to class template instantiation 'insert_iterator<_Container>' being compiled ..\..\Common\Include\stl\stl_iterator.h(119) : error C2146: syntax error : missing ';' before identifier 'iter' ..\..\Common\Include\stl\stl_iterator.h(119) : error C2501: 'insert_iterator<_Container>::iter' : missing storage-class or type specifiers ..\..\Common\Include\stl\stl_iterator.h(128) : error C2226: syntax error : unexpected type '_Container' ..\..\Common\Include\stl\stl_iterator.h(128) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body ..\..\Common\Include\stl\stl_iterator.h(131) : warning C4346: '_Container::value_type' : dependent name is not a type prefix with 'typename' to indicate a type ..\..\Common\Include\stl\stl_iterator.h(131) : error C2061: syntax error : identifier 'value_type' ..\..\Common\Include\stl\stl_iterator.h(131) : error C2805: binary 'operator =' has too few parameters ..\..\Common\Include\stl\stl_iterator.h(131) : error C2333: 'insert_iterator<_Container>::operator`='' : error in function declaration; skipping function body ..\..\Common\Include\stl\stl_alloc.h(158) : fatal error C1903: unable to recover from previous error(s); stopping compilation 还有3个文件也是一样的错,好象出在STL上,难道我要安装STL才行? kstllmcb.cpp kstlnphs.cpp kstlphs.cpp |
|
沙发#
发布于:2005-07-06 22:07
忘了说了,DriverWorks是2.7版的
|
|
板凳#
发布于:2007-03-17 16:50
大哥,问题解决了没?我遇到了同样的问题啊,痛苦中!
|
|
地板#
发布于:2007-03-17 17:32
哪位大虾知道这个问题,帮忙解决一下,谢谢啊
|
|
地下室#
发布于:2007-03-20 09:19
你们用2003的DDK,却又用VC6,能不出问题吗?
若用2003的DDK,就用OS2003,若用VC6,就用DDK2600。也就是XPDDK SP1。 |
|
|