Chinaunix首页 | 论坛 | 博客
  • 博客访问: 167551
  • 博文数量: 37
  • 博客积分: 2055
  • 博客等级: 大尉
  • 技术积分: 420
  • 用 户 组: 普通用户
  • 注册时间: 2009-04-02 12:34
文章分类
文章存档

2011年(4)

2010年(15)

2009年(18)

我的朋友

分类: 嵌入式

2010-05-11 12:00:52

今天早上,拿cygwin编译,突然报了一个重复定义的错误,想来想去也没搞清楚为什么size_t会重复定义,又不敢UNDEF,没办法按图索骥找,发现了几个莫名奇妙的WARNING
Unrecognised #pragma or _Pragma
怎么重来没有见过这个警告了,根据官方的解释:
Pragmas non-specific to the ARM compilers will produce this warning. You can omit your
#pragmas from ARM specific builds by use of conditional compilation, for example:
replace:
#pragma unknown_pragma
with:
#ifndef __arm // If __arm not defined
#pragma unknown_pragma // include this #pragma
#endif
'__arm' is automatically defined by armcc/tcc.

Similarly, you can choose to include #pragmas for a specific compiler using #ifdef. e.g:
#ifdef __arm // If __arm defined
#pragma arm_pragma // include this #pragma
#endif

我的解决方法:
因为我安装有ADS1.1和ADS1.2
把ADS1.1删除掉,然后重新设置cygwin的ADS路径为ADS1.2。其实不删除ADS1.1也可以。
结果:
OK
阅读(2134) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~