免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1932 | 回复: 2
打印 上一主题 下一主题

solaris + STL + vector : compile error! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-05-22 12:31 |只看该作者 |倒序浏览
各位有没有在solaris下使用过STL的东东?
我在 #include <vector>;时报错/usr/include/c++/3.2.3/bits/stl_vector.h中出现大量错误,g++3.2.3是从www.gnu.org中download。

论坛徽章:
0
2 [报告]
发表于 2003-05-22 12:37 |只看该作者

solaris + STL + vector : compile error!

????
错误是什么

论坛徽章:
0
3 [报告]
发表于 2003-05-22 13:16 |只看该作者

solaris + STL + vector : compile error!

/usr/local/include/c++/3.2.3/bits/stl_vector.h:815: `_M_start' was not declared
   in this scope
/usr/local/include/c++/3.2.3/bits/stl_vector.h:815: `_M_finish' was not
   declared in this scope
/usr/local/include/c++/3.2.3/bits/stl_vector.h:815: initializer list being
   treated as compound expression
/usr/local/include/c++/3.2.3/bits/stl_vector.h:816: `_M_start' was not declared
   in this scope
/usr/local/include/c++/3.2.3/bits/stl_vector.h:816: `_M_end_of_storage' was not
   declared in this scope
/usr/local/include/c++/3.2.3/bits/stl_vector.h:816: `_M_start' was not declared
   in this scope
/usr/local/include/c++/3.2.3/bits/stl_vector.h:816: initializer list being
   treated as compound expression
/usr/local/include/c++/3.2.3/bits/stl_vector.h:817: `__tmp' was not declared in
   this scope
/usr/local/include/c++/3.2.3/bits/stl_vector.h:818: `__xlen' was not declared
   in this scope
/usr/local/include/c++/3.2.3/bits/stl_vector.h:819: syntax error before `}'
   token
/usr/local/include/c++/3.2.3/bits/stl_vector.h:822: `__i' was not declared in
   this scope
/usr/local/include/c++/3.2.3/bits/stl_vector.h:822: redefinition of `int
   _Destroy'
/usr/local/include/c++/3.2.3/bits/stl_vector.h:815: `int _Destroy' previously
   defined here
/usr/local/include/c++/3.2.3/bits/stl_vector.h:815: `int _Destroy' previously
   defined here
/usr/local/include/c++/3.2.3/bits/stl_vector.h:822: initializer list being
   treated as compound expression
/usr/local/include/c++/3.2.3/bits/stl_vector.h:823: syntax error before `}'
   token
/usr/local/include/c++/3.2.3/bits/stl_vector.h:826: `_M_finish' was not
   declared in this scope
/usr/local/include/c++/3.2.3/bits/stl_vector.h:826: initializer list being
   treated as compound expression
/usr/local/include/c++/3.2.3/bits/stl_vector.h:827: syntax error before `}'
   token
/usr/local/include/c++/3.2.3/bits/stl_vector.h:828: `__xlen' was not declared
   in this scope
/usr/local/include/c++/3.2.3/bits/stl_vector.h:829: syntax error before `}'
   token
/usr/local/include/c++/3.2.3/bits/stl_vector.h:834: syntax error before `::'
   token
/usr/local/include/c++/3.2.3/bits/stl_vector.h:834: syntax error before `&'
   token
/usr/local/include/c++/3.2.3/bits/stl_vector.h: In function `int
   _M_fill_assign(...)':
/usr/local/include/c++/3.2.3/bits/stl_vector.h:836: `__n' undeclared (first us
   this function)
/usr/local/include/c++/3.2.3/bits/stl_vector.h:836: `capacity' undeclared
   (first use this function)
/usr/local/include/c++/3.2.3/bits/stl_vector.h:837: `vector' undeclared (first
   use this function)
/usr/local/include/c++/3.2.3/bits/stl_vector.h:837: `_Alloc' undeclared (first
   use this function)
/usr/local/include/c++/3.2.3/bits/stl_vector.h:837: `__val' undeclared (first
   use this function)
/usr/local/include/c++/3.2.3/bits/stl_vector.h:837: `get_allocator' undeclared
   (first use this function)
/usr/local/include/c++/3.2.3/bits/stl_vector.h:837: `__tmp' undeclared (first
   use this function)
/usr/local/include/c++/3.2.3/bits/stl_vector.h:838: invalid use of `this' in
   non-member function
/usr/local/include/c++/3.2.3/bits/stl_vector.h:841: `begin' undeclared (first
   use this function)
/usr/local/include/c++/3.2.3/bits/stl_vector.h:841: `fill' undeclared (first
   use this function)
/usr/local/include/c++/3.2.3/bits/stl_vector.h:842: `uninitialized_fill_n'
   undeclared (first use this function)
/usr/local/include/c++/3.2.3/bits/stl_vector.h:845:45: macro "erase" passed 2
guments, but takes just 0
/usr/local/include/c++/3.2.3/bits/stl_vector.h: At global scope:
/usr/local/include/c++/3.2.3/bits/stl_vector.h:849: syntax error before `::'
   token
/usr/local/include/c++/3.2.3/bits/stl_vector.h:849: `_InputIter' was not
   declared in this scope
/usr/local/include/c++/3.2.3/bits/stl_vector.h:849: syntax error before `,'
   token
/usr/local/include/c++/3.2.3/bits/stl_vector.h: In function `int
   _M_assign_aux(...)':
/usr/local/include/c++/3.2.3/bits/stl_vector.h:851: `iterator' undeclared
   (first use this function)
/usr/local/include/c++/3.2.3/bits/stl_vector.h:851: syntax error before `('
   token
/usr/local/include/c++/3.2.3/bits/stl_vector.h:852: `__first' undeclared (firs
   use this function)
/usr/local/include/c++/3.2.3/bits/stl_vector.h:852: `__last' undeclared (first
   use this function)
/usr/local/include/c++/3.2.3/bits/stl_vector.h:852: `__cur' undeclared (first
   use this function)
/usr/local/include/c++/3.2.3/bits/stl_vector.h:855:23: macro "erase" passed 2
guments, but takes just 0
/usr/local/include/c++/3.2.3/bits/stl_vector.h: At global scope:
/usr/local/include/c++/3.2.3/bits/stl_vector.h:862: syntax error before `::'
   token
/usr/local/include/c++/3.2.3/bits/stl_vector.h:862: syntax error before `,'
   token
/usr/local/include/c++/3.2.3/bits/stl_vector.h: In function `int
   _M_assign_aux(...)':
/usr/local/include/c++/3.2.3/bits/stl_vector.h:863: redefinition of `int
   _M_assign_aux(...)'
/usr/local/include/c++/3.2.3/bits/stl_vector.h:850: `int _M_assign_aux(...)'
   previously defined here
/usr/local/include/c++/3.2.3/bits/stl_vector.h:863: redefinition of `int
   _M_assign_aux(...)'
/usr/local/include/c++/3.2.3/bits/stl_vector.h:850: `int _M_assign_aux(...)'
   previously defined here
/usr/local/include/c++/3.2.3/bits/stl_vector.h:864: `size_type' undeclared
   (first use this function)
/usr/local/include/c++/3.2.3/bits/stl_vector.h:864: syntax error before `='
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP