Ubuntu 14.04无法使用STLport进行编译

时间:2015-11-21 06:46:02

标签: c++ ubuntu stl

操作系统:Ubuntu 14.04 gcc(Ubuntu 4.8.2-19ubuntu1)4.8.2

我从http://sourceforge.net/projects/stlport/下载了源代码,在路径中提取。读取INSTALL.unixes。

步骤:

  1. ./配置
  2. make&&检查
  3. 错误: ../../../test/unit/iota.h:10:30: error: ‘iota’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]

    iota(__first, __last, __val); In file included from ../../../stlport/numeric:33:0, from ../../../test/unit/iter_test.cpp:4: ../../../stlport/stl/_numeric.h:174:6: note: ‘template<class _ForwardIterator, class _Tp> void stlp_std::iota(_ForwardIterator, _ForwardIterator, _Tp)’ declared here, later in the translation unit void iota(_ForwardIterator __first, _ForwardIterator __last, _Tp __val) {

    我错过了什么。谢谢。

0 个答案:

没有答案