../app/../app/stdsoap2.h:1774: error: expected specifier-qualifier-list before 'wchar_t'
../app/../app/stdsoap2.h:1820: error: expected specifier-qualifier-list before 'wchar_t'
../app/../app/stdsoap2.h:2490: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../app/../app/stdsoap2.h:2497: warning: type defaults to 'int' in declaration of 'wchar_t'
../app/../app/stdsoap2.h:2497: error: expected ';', ',' or ')' before '*' token
../app/../app/stdsoap2.h:2498: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../app/../app/stdsoap2.h:2580: error: expected declaration specifiers or '...' before 'wchar_t'
../app/../app/stdsoap2.h:2601: warning: type defaults to 'int' in declaration of 'wchar_t'Finished building:../app/../app/logger.c
../app/../app/stdsoap2.h:2601: error: expected ';', ',' or ')' before '*' token
../app/../app/stdsoap2.h:2629: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../app/../app/stdsoap2.h:2630: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
../app/../app/stdsoap2.h:2653: error: expected declaration specifiers or '...' before 'wchar_t'
../app/../app/stdsoap2.h:2654: error: expected declaration specifiers or '...' before 'wchar_t'
如果在用gsoap工具开发Webservices时出现上述类似错误是,可在stdsoap2.h头文件中加入一个linux的头文件stddef.h
一般不会出现,因为出现这样的错误是因为wchar_t没定义,而在linux下是有相关定义的,这样的错误大多出现在嵌入式开发时用ARM一类的编译工具编译。
因为在linux下wchar_t是占用四个字节,这样就有了另一个解决办法,直接用重定义“typedef int wchar_t;”这样也可以解决