This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ccs5编译long long类型报错

用ccs5开发28069,编译时报错:

error #452:
the type "long long" is nonstandard
typedef unsigned long long Uint64;

这个语句是出现在F2806x_Device.h头文件中并且被包含在主函数之前,上下文是这样的:

#ifndef DSP28_DATA_TYPES
#define DSP28_DATA_TYPES
typedef int int16;
typedef long int32;
typedef long long int64;
typedef unsigned long long Uint64;
typedef float float32;
typedef long double float64;
#endif

不知道为什么会报这个错,是不是编译器哪里需要设置,用的编译器版版本是T1V6.1.0,或者需要添加什么文件或者库之类的?

  • C28x上是支持long long type的,建议你可以换用一个例程试试,然后比较问题出在哪里。

  • 查看工程属性中的Specify CLA support(--cla support) 是否选择了“cla1”,若是改为“cla0”,再试试;28069的cla类型可能是cla0;28377的cla类型可以选择cla1