当前位置: 首页 > news >正文

长春制作公司网站专业集团门户网站建设费用

长春制作公司网站,专业集团门户网站建设费用,久久建筑网cad,WordPress显示中文实际工作中,可能会遇到c的一些高级特性,例如std::invoke,此函数是c17才引入的,如何判断当前的gcc是否支持c17呢,这里提供两种办法。 1.根据gcc的版本号来推断 gcc --version,可以查看版本号,笔者…

实际工作中,可能会遇到c++的一些高级特性,例如std::invoke,此函数是c++17才引入的,如何判断当前的gcc是否支持c++17呢,这里提供两种办法。
1.根据gcc的版本号来推断
gcc --version,可以查看版本号,笔者的电脑,gcc的版本号是8.3.0,然后查看8.3.0是什么时候发布的,查出是2019年发布的,从而推断出是支持,但是不是十分肯定,所以接着看第二种方法
2.直接man gcc
![[Pasted image 20230321110013.png]]

上图中,红色方框-std=表示支持的标准项,可以看到c11,c17之类的

centos 本身自带的版本是不支持到C17的。截取 man gcc如下

 -std=Determine the language standard.   This option is currently only supported when compiling C orC++.The compiler can accept several base standards, such as c90 or c++98, and GNU dialects of thosestandards, such as gnu90 or gnu++98.  When a base standard is specified, the compiler accepts allprograms following that standard plus those using GNU extensions that do not contradict it.  Forexample, -std=c90 turns off certain features of GCC that are incompatible with ISO C90, such asthe "asm" and "typeof" keywords, but not other GNU extensions that do not have a meaning in ISOC90, such as omitting the middle term of a "?:" expression. On the other hand, when a GNU dialectof a standard is specified, all features supported by the compiler are enabled, even when thosefeatures change the meaning of the base standard.  As a result, some strict-conforming programsmay be rejected.  The particular standard is used by -Wpedantic to identify which features areGNU extensions given that version of the standard. For example -std=gnu90 -Wpedantic warns aboutC++ style // comments, while -std=gnu99 -Wpedantic does not.A value for this option must be provided; possible values arec90c89iso9899:1990Support all ISO C90 programs (certain GNU extensions that conflict with ISO C90 aredisabled). Same as -ansi for C code.iso9899:199409ISO C90 as modified in amendment 1.c99c9xiso9899:1999iso9899:199xISO C99.  Note that this standard is not yet fully supported; see<http://gcc.gnu.org/c99status.html> for more information.  The names c9x and iso9899:199x aredeprecated.c11c1xiso9899:2011ISO C11, the 2011 revision of the ISO C standard.  Support is incomplete and experimental.The name c1x is deprecated.gnu90gnu89GNU dialect of ISO C90 (including some C99 features). This is the default for C code.gnu99gnu9xGNU dialect of ISO C99.  When ISO C99 is fully implemented in GCC, this will become thedefault.  The name gnu9x is deprecated.gnu11gnu1xGNU dialect of ISO C11.  Support is incomplete and experimental.  The name gnu1x isdeprecated.c++98c++03The 1998 ISO C++ standard plus the 2003 technical corrigendum and some additional defectreports. Same as -ansi for C++ code.gnu++98gnu++03GNU dialect of -std=c++98.  This is the default for C++ code.c++11c++0xThe 2011 ISO C++ standard plus amendments.  Support for C++11 is still experimental, and maychange in incompatible ways in future releases.  The name c++0x is deprecated.gnu++11gnu++0xGNU dialect of -std=c++11. Support for C++11 is still experimental, and may change inincompatible ways in future releases.  The name gnu++0x is deprecated.c++1yThe next revision of the ISO C++ standard, tentatively planned for 2017.  Support is highlyexperimental, and will almost certainly change in incompatible ways in future releases.gnu++1yGNU dialect of -std=c++1y.  Support is highly experimental, and will almost certainly changein incompatible ways in future releases.
http://www.yayakq.cn/news/586192/

相关文章:

  • 十大网络安全上市公司seo怎么优化一个网站
  • 淘宝美工做倒计时图片网站天津建设发展集团有限公司
  • 价格低的成语产品seo是什么意思
  • 宿迁网站建设哪家专业网站的pdf预览是怎么做的
  • 个性化网站wordpress做成仿阿里巴巴
  • dw创建网站导航栏菜单怎么做鹤壁做网站推广
  • 中展建设股份有限公司网站网络服务器可提供的常见服务有什么
  • 海康域名网站网络在线培训网站建设方案
  • 烟台市福山区住房和建设局网站网站建设一龙条
  • 网站开发与维护视频教程做美足网站违法吗
  • 天津企业网站制作手机网站你了解的
  • 网站维护具体做啥wordpress全景插件
  • 建设工程职称论文查询网站网站推广的作用
  • 文具网站建设规划书钓鱼网站到底怎么做
  • 佛山公司网站推广外包服务100个最佳市场营销案例
  • 网站建设怎么写宁波网络推广推荐机构
  • 小企业官方网站制作不通过网站可以做360全景吗
  • 临夏金属装饰网站建设为什么没有人做像58一样的网站
  • 专业网专业网站建设为网站网站做代理怎么判
  • 优良的定制网站建设提供商山东东营市属于几线城市
  • 郑州购物网站建设长春市长春网站建设
  • 江门网站建设公司哪家好找工作室的网站
  • 北京网站设计十年乐云seowordpress可以做淘宝客
  • 用cms做网站的具体步骤统计局网站建设情况
  • 中国建设银行网站首页怎么销户官方制作网站
  • 外贸机械网站建设品牌购买网站
  • 网站界面设计规划wordpress 海贼王
  • 检察院门户网站建设情况总结郑州网站设计汉狮
  • 营销型网站建设需要注意什么云南网站设计
  • 大连成品网站建设珠海的门户网站有哪些