打印
[DSP编程]

头文件报错

[复制链接]
1323|5
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
stdenis|  楼主 | 2014-8-8 15:42 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
头文件中的c6x.h文件报错:
/*****************************************************************************/
/*  C6X.H v4.32                                                             */
/*  Copyright (c) 1996-2002 Texas Instruments Incorporated                   */
/*****************************************************************************/
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */

unsigned _extu          (unsigned, unsigned, unsigned);
int      _ext          (int,      unsigned, unsigned);
unsigned _set          (unsigned, unsigned, unsigned);
unsigned _clr          (unsigned, unsigned, unsigned);
unsigned _extur          (unsigned, int);
int      _extr          (int,      int);
unsigned _setr          (unsigned, int);
unsigned _clrr          (unsigned, int);
int      _sadd          (int,      int);
[color=Red]long     _lsadd          (int,      long);[/color]
int         _ssub          (int,      int);
[color=Red]long         _lssub          (int,      long);[/color]
int      _sshl          (int,      unsigned);
int         _add2          (int,      int);
int         _sub2          (int,      int);
unsigned _subc          (unsigned, unsigned);
unsigned _lmbd          (unsigned, unsigned);
int      _abs          (int);
[color=Red]long     _labs          (long);
int      _sat          (long);[/color]
unsigned _norm          (int);
[color=Red]unsigned _lnorm          (long)[/color];
代码中的红色部分报错,报错类型为#149 declaration is incompatible with builtin "__int40_t _lssub(int, __int40_t)" 只要出现long就报错,求解

相关帖子

沙发
ayb_ice| | 2014-8-8 16:44 | 只看该作者
声明与定义不一样

使用特权

评论回复
板凳
NWPU_CHEN| | 2014-8-8 23:10 | 只看该作者
检查类型名

使用特权

评论回复
地板
stdenis|  楼主 | 2014-8-9 09:57 | 只看该作者
ayb_ice 发表于 2014-8-8 16:44
声明与定义不一样

什么意思?

使用特权

评论回复
5
ayb_ice| | 2014-8-9 10:40 | 只看该作者
stdenis 发表于 2014-8-9 09:57
什么意思?

这些都是些基本错误

使用特权

评论回复
6
zhangmangui| | 2014-8-9 15:40 | 只看该作者
出现long类型就出错   与函数定义参数有关  

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

3

主题

14

帖子

0

粉丝