我的设备上的 C++ 编译器版本是什么
what is c++ compiler version on my device
in cmd 我输入了g++ -v
结果:
使用内置规范。 COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=C:/Program\ Files\ (x86(/CodeBlocks/MinGW/bin/../libexec/gcc/mingw32/5.1.0/lto-wrapper.exe 目标:明w32 配置: ../../../src/gcc-5.1.0/configure --build=mingw32 --enable-languages=ada,c,c++,fortran,lto,objc,obj-c++ --enable-libgomp --enable-lto --enable-graphite --enable-libstdcxx-debug --enable-threads=posix --enable-version-specific-runtime-libs --enable-full-dynamic-string --enable-libstdcxx-threads --enable-libstdcxx-time --with-gnu-ld --disable-werror --disable-nls --disable-win32-registry --disable-symvers --enable-cxx-flags='-fno-function-sections -fno-data-sections -DWINPTHREAD_STATIC' --prefix=/mingw32tdm --with-local-prefix=/mingw32tdm --with-pkgversion=tdm-1 --enable-sjlj-exceptions --with-bugurl=http://tdm-gcc.tdragon.net/bugs 螺纹型号:磅 GCC 版本 5.1.0 (TDM-1(
我想知道我的 c++ 版本是什么?是哪一个,C++11/C++14/C++17?
似乎您的编译器版本是 5.1.0(来自路径中的目录名称(
C++11、C++14 或 C++17 与下载的编译器版本无关。任何编译器都应该在其下载中包含编译器已实现的所有标准版本(正如Nicolas Dusart指出的那样,GCC 5.1.0最多只有C++14(。因此,您可以使用 -std={c++11, c++14, c++17} 标志指定要编译的语言规范。
例如,如果要使用 Concepts(c++20 功能(编译代码,则必须使用:
g++ main.cpp -o hello_world -std=c++20
- CMake 库链接使用两个不同的编译器版本
- 我的设备上的 C++ 编译器版本是什么
- 检测到 Conan 配置文件设置与 CMake 之间的编译器版本不匹配
- 是否根据编译器版本有条件地包含源文件
- 如果使用低于 VS2015 的 vc++ 编译器版本编译,则 DLL 中的访问冲突
- 在Travis中为CMAKE构建指定编译器版本
- Apple Clang编译器版本架构架构
- 功能模板与Variadic模板过载:Intel C 编译器版本18产生的结果不同于其他编译器.英特尔是错误的
- Boost bjam 不会将编译器版本放在文件名中
- 具有C 接口的C 动态库如何在不同的编译器版本之间不会破坏ABI
- 不同编译器版本的C++中的奇怪行为(字符串通过引用传递):参见简单的程序说明
- 在不同的编译器版本中调用new[]和delete[]
- 具有状态的Microsoft编译器版本19.16.27024.1的问题
- Node.js C 插件开发的编译器版本
- unix中的C 编译器版本
- Solaris 上的 GNU gcc/g++ 编译器版本,支持 C++11/14
- 区分 VC++ 2010 和更高版本的编译器版本
- VisualStudio 优化编译器版本 19.00.23506.0 中存在明显的编译错误
- 混合使用不同编译器版本构建的二进制文件
- 共享内存段在提升版本和编译器版本之间是否兼容