par2tbb无法使用&#34编译; auto_ptr不是std"的成员。错误

时间:2015-06-25 12:47:28

标签: c++ c++11 makefile

我正在尝试在Gentoo Linux内核3.18.12上编译par2tbb,并且我不断收到以下编译错误:

par2cmdline.cpp: In function ‘int main(int, char**)’:
par2cmdline.cpp:88:3: error: ‘auto_ptr’ is not a member of ‘std’
   std::auto_ptr<CommandLine> commandline(new CommandLine);
   ^

我已经检查过源代码中是否存在#include <memory.h>,我已经将CXXFLAGS = -std=c++11添加到了makefile中,但仍然无法编译。

在线查看,这两项措施是我能找到的唯一解决办法。对于发生了什么有什么想法?

0 个答案:

没有答案