繁体中文
高级搜索
 
首页 | 电子技术应用 | 行业最新动态 | 行业最新产品 | 软件资料下载 | 电路图纸欣赏 | 博客文章精选 | 电子精品论坛 | 电子技术贴吧

当前位置:首页 >> 博客文章精选 >> 嵌入式系统-博客 >> vxworks解决注释不匹配问题
vxworks解决注释不匹配问题
作者:   来源: 发表时间:2006-12-08  字号:  

vxworks默认的注释类型是“/*。。。。。*/”在使用C 类型的注释“//”,就有可能报错。 一种方法是移除-ansi开关。可是怎么移除呢?对许多对编译器不太了解的人可能看了FAQ了不知道怎么办。下面具体讲解:

在vxworks的工程里有build这个选项,字体变黑的就是你选的编译类型以default为例,双击default(默认的),在c/c compiler和assember里将-ansi去掉,然后再OK!
下面来自预编译器文档`-lang-c', `-lang-c89', `-lang-c '
`-lang-objc', `-lang-objc '
Specify the source language. `-lang-c' is the default; it allows recognition of C
comments (comments that begin with `//' and end at end of line), since this is a common
feature and it will most likely be in the next C standard. `-lang-c89' disables recognition
of C comments. `-lang-c ' handles C comment syntax and includes extra default include
directories for C . `-lang-objc' enables the Objective C `#import' directive. `-lang-objc '
enables both C and Objective C extensions. These options are generated by the compiler
driver gcc, but not passed from the `gcc' command line unless you use the driver's `-Wp'
option .

其实如果要跟深入了解,可以看看GNU方面的资料


!注意:如果您发现此文章出现影响您的阅读的状况,请从浏览器地址栏里复制本文的链接到留言本报告给站长解决!
  • 上一篇: tornado安装
  • 下一篇: 为arm,51与优盘进行串口通信的东东

  • >> 联系我们请给我们留言·留言本
    本站所有提供的信息软件资料均来自网络,版权及著作权归原作者所有,如果无意中侵犯了您的相关权利或触及法律法规,请给我们留言, 我们将在24小时内删除。
      浙ICP备05071687号  电子技术精品网