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.

CCS3.3 结构体成员对齐



请问一下群里的朋友为什么在CCS3.3编译
typedef __packed struct

{

char a;

int b;

}teststruct;
这个结构体时提示
编译出错: error: expected a type specifier

error: expected a ";"
这个错误。是CCS3.3编译器本身不支持__packed这种结构体成员的对齐方式吗?如果不支持,那么怎么样来改变其结构体的对齐方式?请朋友们不吝赐教。

另外 用#pragma pack()会提示#pragma 不被识别的错误。这是怎么回事?