日期:2014-05-16  浏览次数:20665 次

交叉编译工具不支持wchar_t数据类型
用海思sdk编译器编译onvif出现:
stdsoap2.h:1836: error: syntax error before "wchar_t"
stdsoap2.h:1836: warning: no semicolon at end of struct or union
stdsoap2.h:1851: error: syntax error before '}' token
stdsoap2.h:1882: error: syntax error before "wchar_t"
stdsoap2.h:1882: warning: no semicolon at end of struct or union
stdsoap2.h:1909: error: syntax error before '}' token
stdsoap2.h:2556: error: syntax error before '*' token
stdsoap2.h:2556: error: syntax error before '*' token
stdsoap2.h:2556: warning: data definition has no type or storage class
stdsoap2.h:2563: error: syntax error before '*' token
stdsoap2.h:2564: error: syntax error before '*' token
stdsoap2.h:2564: warning: data definition has no type or storage class
stdsoap2.h:2646: error: syntax error before "wchar_t"
stdsoap2.h:2667: error: syntax error before '*' token
stdsoap2.h:2695: error: syntax error before '*' token
stdsoap2.h:2695: error: syntax error before "wchar_t"
stdsoap2.h:2695: warning: data definition has no type or storage class
stdsoap2.h:2696: error: syntax error before '*' token
stdsoap2.h:2696: error: syntax error before "wchar_t"
stdsoap2.h:2696: warning: data definition has no type or storage class
stdsoap2.h:2719: error: syntax error before "wchar_t"
stdsoap2.h:2720: error: syntax error before "wchar_t"
make: *** [soapClient.o] 错误 1
好像是对wchar_t数据类型不支持,请问如何解决?
------解决方案--------------------
库里没有?用g++或者glibc试试