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

详细!交叉编译时 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`   

  

  解决了不再出现警告了。

 

  

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