如何在Eclipse Helios上使用C++0x
How do I use C++0x on Eclipse Helios?
我正在尝试在Helios Eclipse上使用C++0x。
我按照这里的说明进行操作:
Eclipse CDT C++11/C++0x 支持
他们不会工作。
当我使用 make -f makefile(在调试目录中)时,出现错误:
g++ -O0 -g3 -Wall -c -fmessage-length=0 -std=c++0x -MMD -MP -MF"cnfo.d" -MT"cnf_io.d" -o"cnfo.o" "../cnfo.cpp"
cc1plus: error: unrecognized command line option "-std=c++0x"
我正在使用MacOSx。我刚刚重新安装了xcode,最新版本。G++ --version 给出:
# g++ --version
i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
除了上面在StackOverflow链接中所说的内容外,我没有更改项目设置中的任何内容。
我认为使用 G++ 4.2.1 不会得到 C++11,因为实现是从 4.3 开始的......
当前版本为4.9.x,请获取更新的软件。
相关文章:
- 定义宏以将前缀 0x 添加到十六进制字符串文本
- 0x%08lx 格式说明符在 printf 语句到 cout
- 如何使系统在十六进制数之前打印 0x,在八进制数之前打印 0?
- 如何在Eclipse Helios中将可执行文件更改为静态库
- -std=c++0x 导致在 boost 1.64 的情况下返回对临时的引用
- 将字符串转换为十六进制格式并将"0x "附加到十六进制值
- 使用 C++0x 编译生成文件
- 如何将 x 打印为 0x,其中 x 是整数C++
- Unix 宏在使用 -std=c++0x 标志编译时变得未定义
- 嵌套模板功能中的C 0x lambda参数
- 无法加载dll libglorycolx2010.dll.该应用程序未能启动,因为其并排配置不正确.Hresult:0x
- G-WAN cc1plus:错误:无法识别的命令行选项"-std=gnu++0x"
- 在 DirectXGame.exe 中0x00B84CD6出现未经处理的异常:0xC0000005:访问冲突读取位置0x
- C++0x线程没有加速
- 如何为 C++0x/11 和非 C++0x/11 制作标头
- Compiling c++0x for AVR
- C++中的 0x 和"\x"有什么区别?
- 小写 0x 与大写 iostream
- g++-std=c++0x及其兼容性
- 如何在Eclipse Helios上使用C++0x