【问题标题】:cannot compile using g++ 4.2.2 with -std=c++0x无法使用带有 -std=c++0x 的 g++ 4.2.2 进行编译
【发布时间】:2015-11-23 12:50:05
【问题描述】:

当我使用 g++ 4.7.2 编译它时,我使用了 c++0x 中的功能。一切正常。但我有使用 g++ 4.2.2 编译的限制,这一切都开始失败。有没有我可以使用的快速补救措施,以便编译我的“so”。

【问题讨论】:

  • 一个错误日志会很好。
  • cc1plus:错误:无法识别的命令行选项“-std=c++0x”
  • 构造函数=删除; typedef size_t size_type; static const size_type npos = ~size_type(0);

标签: c++ g++ c++-concepts


【解决方案1】:

没有。

那个编译器太老了,gcc 开始在4.3 中添加功能。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-09-29
    • 1970-01-01
    • 2012-11-06
    • 1970-01-01
    • 2015-01-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多