关于arm-hismall-linux-交叉编译工具

max_min_ 2013-06-06 12:40:10


在自己的PC机上,编译完全没有问题!能够成功!

但是如果有arm-hismall-linux- 交叉编译工具的话,就会报错

如下
stdsoap2.h:1712: error: syntax error before "wchar_t"
stdsoap2.h:1712: warning: no semicolon at end of struct or union
stdsoap2.h:1727: error: syntax error before '}' token
stdsoap2.h:1758: error: syntax error before "wchar_t"
stdsoap2.h:1758: warning: no semicolon at end of struct or union
stdsoap2.h:1785: error: syntax error before '}' token
stdsoap2.h:2407: error: syntax error before '*' token
stdsoap2.h:2407: error: syntax error before '*' token
stdsoap2.h:2407: warning: data definition has no type or storage class
stdsoap2.h:2414: error: syntax error before '*' token
stdsoap2.h:2415: error: syntax error before '*' token
stdsoap2.h:2415: warning: data definition has no type or storage class
stdsoap2.h:2496: error: syntax error before "wchar_t"
stdsoap2.h:2517: error: syntax error before '*' token
stdsoap2.h:2545: error: syntax error before '*' token
stdsoap2.h:2545: error: syntax error before "wchar_t"
stdsoap2.h:2545: warning: data definition has no type or storage class
stdsoap2.h:2546: error: syntax error before '*' token
stdsoap2.h:2546: error: syntax error before "wchar_t"
stdsoap2.h:2546: warning: data definition has no type or storage class
stdsoap2.h:2569: error: syntax error before "wchar_t"
stdsoap2.h:2570: error: syntax error before "wchar_t"
make[1]: *** [soapC.o] Error 1
make[1]: Leaving directory `/home/zhangyuan/svnwork/RS-DEVICE-MODULE/network-module/workspace/onvif_export/src'
make: *** [default] Error 2



求大神指点一下 谢谢
...全文
138 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
max_min_ 2013-06-30
  • 打赏
  • 举报
回复
引用 3 楼 prohibit 的回复:
确认你的交叉编译环境中是否有wchar_t这个类型(写个简单的C程序来测测),如果没有,用typedef定义一个别名
哎,测试是有的,后来换了g++编译器,gcc好像没有
falloutmx 2013-06-06
  • 打赏
  • 举报
回复
因为两者用的库不一样吧
prohibit 2013-06-06
  • 打赏
  • 举报
回复
确认你的交叉编译环境中是否有wchar_t这个类型(写个简单的C程序来测测),如果没有,用typedef定义一个别名
max_min_ 2013-06-06
  • 打赏
  • 举报
回复
1706 #ifndef WITH_LEANER
1707 struct soap_dom_attribute
1708 { struct soap_dom_attribute *next;
1709   const char *nstr;
1710   char *name;
1711   char *data;
1712   wchar_t *wide;
1713   struct soap *soap;
1714 #ifdef __cplusplus
1715   typedef soap_dom_attribute_iterator iterator;
1716   struct soap_dom_attribute &set(const char *nstr, const char *name);   /* set namespace and name */
1717   struct soap_dom_attribute &set(const char *data);     /* set data */
1718   soap_dom_attribute_iterator begin();
1719   soap_dom_attribute_iterator end();
1720   soap_dom_attribute_iterator find(const char *nstr, const char *name);
1721   void unlink();
1722   soap_dom_attribute();
1723   soap_dom_attribute(struct soap *soap);
1724   soap_dom_attribute(struct soap *soap, const char *nstr, const char *name, const char *data);
1725   ~soap_dom_attribute();
1726 #endif
1727 };
这里的wchar_t 就保错了, 其他用到wchar_t都报错的
mayer 2013-06-06
  • 打赏
  • 举报
回复
上代码才是正道:stdsoap2.h

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧