主题 : error: unterminated argument list invoking macro "T" 问题 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 32030
精华: 0
发帖: 2
金钱: 10 两
威望: 2 点
综合积分: 4 分
注册时间: 2010-11-09
最后登录: 2011-01-13
楼主  发表于: 2010-11-09 10:17

 error: unterminated argument list invoking macro "T" 问题

./src/http/acmpstatus.c:210:1: error: unterminated argument list invoking macro "T"
./src/http/acmpstatus.c: In function 'net_status':
./src/http/acmpstatus.c:95: error: 'T' undeclared (first use in this function)
./src/http/acmpstatus.c:95: error: (Each undeclared identifier is reported only once
./src/http/acmpstatus.c:95: error: for each function it appears in.)
./src/http/acmpstatus.c:95: error: expected ')' at end of input
./src/http/acmpstatus.c:95: error: expected declaration or statement at end of input


使用的是交叉编译器 4.3.3 ,以前用3.3.2可以编译成功
源码中 T的定义

#ifdef UNICODE
/*
*    To convert strings to UNICODE. We have a level of indirection so things
*    like T(__FILE__) will expand properly.
*/
#define    T(x)                __TXT(x)
#define    __TXT(s)            L ## s
typedef unsigned short         char_t;
typedef unsigned short        uchar_t;
/*
*    Text size of buffer macro. A buffer bytes will hold (size / char size)
*    characters.
*/
#define    TSZ(x)                (sizeof(x) / sizeof(char_t))

/*
*    How many ASCII bytes are required to represent this UNICODE string?
*/
#define    TASTRL(x)            ((wcslen(x) + 1) * sizeof(char_t))

#else
#define    T(s)                 s
typedef char                char_t;
#define    TSZ(x)                (sizeof(x))
#define    TASTRL(x)            (strlen(x) + 1)
#ifdef WIN
typedef unsigned char        uchar_t;
#endif /* WIN */

#endif /* UNICODE */
求助解决方法