resou
驱动牛犊
驱动牛犊
  • 注册日期2002-06-20
  • 最后登录2008-11-10
  • 粉丝0
  • 关注0
  • 积分8分
  • 威望3点
  • 贡献值0点
  • 好评度1点
  • 原创分0分
  • 专家分0分
阅读:1554回复:4

XP编译DriverWorks库的问题

楼主#
更多 发布于:2005-07-06 21:59
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
resou
驱动牛犊
驱动牛犊
  • 注册日期2002-06-20
  • 最后登录2008-11-10
  • 粉丝0
  • 关注0
  • 积分8分
  • 威望3点
  • 贡献值0点
  • 好评度1点
  • 原创分0分
  • 专家分0分
沙发#
发布于:2005-07-06 22:07
忘了说了,DriverWorks是2.7版的
qiuxin_88
驱动牛犊
驱动牛犊
  • 注册日期2006-11-20
  • 最后登录2013-02-18
  • 粉丝0
  • 关注0
  • 积分7分
  • 威望52点
  • 贡献值0点
  • 好评度18点
  • 原创分0分
  • 专家分0分
板凳#
发布于:2007-03-17 16:50
大哥,问题解决了没?我遇到了同样的问题啊,痛苦中!
qiuxin_88
驱动牛犊
驱动牛犊
  • 注册日期2006-11-20
  • 最后登录2013-02-18
  • 粉丝0
  • 关注0
  • 积分7分
  • 威望52点
  • 贡献值0点
  • 好评度18点
  • 原创分0分
  • 专家分0分
地板#
发布于:2007-03-17 17:32
哪位大虾知道这个问题,帮忙解决一下,谢谢啊
xp4105
论坛版主
论坛版主
  • 注册日期2006-04-02
  • 最后登录2014-03-29
  • 粉丝1
  • 关注0
  • 积分905分
  • 威望570点
  • 贡献值1点
  • 好评度162点
  • 原创分1分
  • 专家分0分
地下室#
发布于:2007-03-20 09:19
你们用2003的DDK,却又用VC6,能不出问题吗?
若用2003的DDK,就用OS2003,若用VC6,就用DDK2600。也就是XPDDK SP1。
时光如流水 抓紧时间实现自我价值
游客

返回顶部