SOS,将C移植到C++ Builder中存在的一个问题
cnphx 2001-09-05 03:36:46 在C中编译连接成功的一个文件,我将之移到C++ Builder中,如下(.h文件):
typedef struct ListStruct {
void *Item;
struct ListStruct *next;
} TList1Struct;
typedef struct {
int Count;
TList1Struct *first;
} TList1;
TList1 *NewList();
bool AddList(TList1 *L,void *Item);
编译到上述最后一行时,系统报错E2141 Declaration syntax error.
怎么回事?