操作系统:Ubuntu 14.04 gcc(Ubuntu 4.8.2-19ubuntu1)4.8.2
我从http://sourceforge.net/projects/stlport/下载了源代码,在路径中提取。读取INSTALL.unixes。
步骤:
错误:
../../../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) {
我错过了什么。谢谢。