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.

CCS V3.3中如何使#define PACKED __attribute__ ((packed))生效?

Other Parts Discussed in Thread: AM1808

am1808 starterware源码包中有这样一段代码:

#if defined(ccs) ||             \

   defined(codered) ||         \

   defined(gcc) ||             \

   defined(rvmdk) ||           \

   defined(__ARMCC_VERSION) || \

   defined(sourcerygxx)

#define PACKED __attribute__ ((packed))

我在CCSV3.3中编译不过去,错误提示不识别__attribute__((packed))这是为什么?怎么解决该问题?

谢谢。