详细!交叉编译时 note: the mangling of 'va_list' has changed in GCC 4.4解决办法

 

 

  为什么要在标题前面加了详细两个字,就是为了吸引看文章的你还有写文章的我这种小白,我是从坑里面爬出来了。

  

  废话少说....

    问题就是这样子了,至于解决办法,在网上搜索了很久,大多数以一段英文作为解决办法,...

    I think that the warning is accurate; the mangling of va_list has indeed
  changed on ARM in GCC 4.4 in order to conform to the ARM ABI specifications.
  There is an option to turn off warnings about PSABI issues; -Wno-psabi.  I
  think that option (if not some stronger option) should be used.

  

  还找到了这句话的出处,nnd的老外https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42748

  看了半天终于弄懂了是怎么回事,可是你倒是跟我说-Wno-psabi是什么怎么用啊。

  后来想了半天,前面不是说这是个option吗,那就在编译的时候加个选项嘛,所以...

  

  :#arm-linux-g++ -Wno-psabi  hello.c -o hello  `pkg-config  --cflags --libs opencv`   

  

  解决了不再出现警告了。

 

  

转载于:https://www.cnblogs.com/shazi909/p/4160665.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值