查看错误发现有重复定义的地方,请问这里该怎么处理呢?
#ifdef __TMS320C28XX_CLA__
//
// For Portability, User Is Recommended To Use Following Data Type Size
// Definitions For 16-bit and 32-Bit Signed/Unsigned Integers:
//
// CLA does not support 64-bit types
// This definition is only to allow inclusion of the standard header files
// which do use 64-bit types
//
//
// For Portability, User Is Recommended To Use Following Data Type Size
// Definitions For 16-bit and 32-Bit Signed/Unsigned Integers:
//
// CLA does not support 64-bit types
// This definition is only to allow inclusion of the standard header files
// which do use 64-bit types
//
#if (!defined(F28_DATA_TYPES) && !defined(DSP28_DATA_TYPES))
#define F28_DATA_TYPES
#define DSP28_DATA_TYPES
typedef short int16;
typedef long int32;
typedef unsigned char Uint8;
typedef unsigned short Uint16;
typedef unsigned long Uint32;
typedef float float32;
typedef long double float64;
typedef struct { Uint32 low32; Uint32 high32; } Uint64;
typedef struct { int32 low32; int32 high32; } int64;
#else
#error f28004x_Cla_Typedefs.h must be included before f28004x_Device.h or any other header \
file that redefines data types using the guard macros F28_DATA_TYPES or DSP28_DATA_TYPES
#endif //(!defined(F28_DATA_TYPES) && !defined(DSP28_DATA_TYPES))
#define F28_DATA_TYPES
#define DSP28_DATA_TYPES
typedef short int16;
typedef long int32;
typedef unsigned char Uint8;
typedef unsigned short Uint16;
typedef unsigned long Uint32;
typedef float float32;
typedef long double float64;
typedef struct { Uint32 low32; Uint32 high32; } Uint64;
typedef struct { int32 low32; int32 high32; } int64;
#else
#error f28004x_Cla_Typedefs.h must be included before f28004x_Device.h or any other header \
file that redefines data types using the guard macros F28_DATA_TYPES or DSP28_DATA_TYPES
#endif //(!defined(F28_DATA_TYPES) && !defined(DSP28_DATA_TYPES))
Seven Han:请问具体的报错信息是什么?您的问题和这个帖子是否类似:e2echina.ti.com/…/440687
查看错误发现有重复定义的地方,请问这里该怎么处理呢?
#ifdef __TMS320C28XX_CLA__
//
// For Portability, User Is Recommended To Use Following Data Type Size
// Definitions For 16-bit and 32-Bit Signed/Unsigned Integers:
//
// CLA does not support 64-bit types
// This definition is only to allow inclusion of the standard header files
// which do use 64-bit types
//
//
// For Portability, User Is Recommended To Use Following Data Type Size
// Definitions For 16-bit and 32-Bit Signed/Unsigned Integers:
//
// CLA does not support 64-bit types
// This definition is only to allow inclusion of the standard header files
// which do use 64-bit types
//
#if (!defined(F28_DATA_TYPES) && !defined(DSP28_DATA_TYPES))
#define F28_DATA_TYPES
#define DSP28_DATA_TYPES
typedef short int16;
typedef long int32;
typedef unsigned char Uint8;
typedef unsigned short Uint16;
typedef unsigned long Uint32;
typedef float float32;
typedef long double float64;
typedef struct { Uint32 low32; Uint32 high32; } Uint64;
typedef struct { int32 low32; int32 high32; } int64;
#else
#error f28004x_Cla_Typedefs.h must be included before f28004x_Device.h or any other header \
file that redefines data types using the guard macros F28_DATA_TYPES or DSP28_DATA_TYPES
#endif //(!defined(F28_DATA_TYPES) && !defined(DSP28_DATA_TYPES))
#define F28_DATA_TYPES
#define DSP28_DATA_TYPES
typedef short int16;
typedef long int32;
typedef unsigned char Uint8;
typedef unsigned short Uint16;
typedef unsigned long Uint32;
typedef float float32;
typedef long double float64;
typedef struct { Uint32 low32; Uint32 high32; } Uint64;
typedef struct { int32 low32; int32 high32; } int64;
#else
#error f28004x_Cla_Typedefs.h must be included before f28004x_Device.h or any other header \
file that redefines data types using the guard macros F28_DATA_TYPES or DSP28_DATA_TYPES
#endif //(!defined(F28_DATA_TYPES) && !defined(DSP28_DATA_TYPES))
user3452516:
回复 Seven Han:
具体报错是有重复定义Description Resource Path Location Type
#102 "MSTF_SHADOW_BITS" has already been declared in the current scope .ccsproject /Bidirectional_LLC_TEST_V1 line 65, external location: C:\ti\c2000\C2000Ware_1_00_05_00\device_support\f28004x\headers\include\f28004x_device.h C/C++ Problem
查看错误发现有重复定义的地方,请问这里该怎么处理呢?
#ifdef __TMS320C28XX_CLA__
//
// For Portability, User Is Recommended To Use Following Data Type Size
// Definitions For 16-bit and 32-Bit Signed/Unsigned Integers:
//
// CLA does not support 64-bit types
// This definition is only to allow inclusion of the standard header files
// which do use 64-bit types
//
//
// For Portability, User Is Recommended To Use Following Data Type Size
// Definitions For 16-bit and 32-Bit Signed/Unsigned Integers:
//
// CLA does not support 64-bit types
// This definition is only to allow inclusion of the standard header files
// which do use 64-bit types
//
#if (!defined(F28_DATA_TYPES) && !defined(DSP28_DATA_TYPES))
#define F28_DATA_TYPES
#define DSP28_DATA_TYPES
typedef short int16;
typedef long int32;
typedef unsigned char Uint8;
typedef unsigned short Uint16;
typedef unsigned long Uint32;
typedef float float32;
typedef long double float64;
typedef struct { Uint32 low32; Uint32 high32; } Uint64;
typedef struct { int32 low32; int32 high32; } int64;
#else
#error f28004x_Cla_Typedefs.h must be included before f28004x_Device.h or any other header \
file that redefines data types using the guard macros F28_DATA_TYPES or DSP28_DATA_TYPES
#endif //(!defined(F28_DATA_TYPES) && !defined(DSP28_DATA_TYPES))
#define F28_DATA_TYPES
#define DSP28_DATA_TYPES
typedef short int16;
typedef long int32;
typedef unsigned char Uint8;
typedef unsigned short Uint16;
typedef unsigned long Uint32;
typedef float float32;
typedef long double float64;
typedef struct { Uint32 low32; Uint32 high32; } Uint64;
typedef struct { int32 low32; int32 high32; } int64;
#else
#error f28004x_Cla_Typedefs.h must be included before f28004x_Device.h or any other header \
file that redefines data types using the guard macros F28_DATA_TYPES or DSP28_DATA_TYPES
#endif //(!defined(F28_DATA_TYPES) && !defined(DSP28_DATA_TYPES))
Seven Han:
回复 user3452516:
您问题解决了么,您在整个工程搜索下这个变量,看下他都在哪里做了定义。
或者您使用的是哪个工程,可以贴上来,我这边也编译下看是什么问题。